anchor.diff:        alertUsersAttachment(attachmentId); //dans publication.jsp
       }
   
  -    function AddAttachment() {
  +    function addAttachment(foreignId) {
  +      $("#add-attachment-form #foreignId").val(foreignId);
         $("#dialog-attachment-add").dialog("open");
       }
   
  
positive.code:     </c:choose>
    </c:if>
  </div>
  <div id="attachmentModalDialog" style="display: none"> </div>
  <c:if test="${spinfireViewerEnable}">
    <script type="text/javascript">
  
negative.code: <script type="text/javascript" src='<c:url value="/util/yui/menu/menu-min.js" />' ></script>
  <link rel="stylesheet" type="text/css" href='<c:url value="/util/yui/menu/assets/menu.css" />'/>
  
    <view:settings var="spinfireViewerEnable" settings="org.silverpeas.util.attachment.Attachment" defaultValue="${false}" key="SpinfireViewerEnable" />
    <view:setConstant var="spinfire" constant="com.silverpeas.util.MimeTypes.SPINFIRE_MIME_TYPE" />
    <view:setConstant var="mainSessionControllerAtt" constant="com.stratelia.silverpeas.peasCore.MainSessionController.MAIN_SESSION_CONTROLLER_ATT" />
    <c:set var="mainSessionController" value="${sessionScope[mainSessionControllerAtt]}" />
    <view:settings var="onlineEditingEnable" settings="org.silverpeas.util.attachment.Attachment" defaultValue="${false}" key="OnlineEditingEnable" />
    <view:settings var="dAndDropEnable" settings="org.silverpeas.util.attachment.Attachment" defaultValue="${false}" key="DragAndDropEnable" />
    <c:set var="webdavEditingEnable" value="${mainSessionController.webDAVEditingEnabled && onlineEditingEnable}" />
    <c:set var="dnd" value="${fn:toLowerCase(param.dnd)}" scope="page"/>
    <c:set var="dndDisabledLocally" value="${'false' eq dnd}" scope="page" />
    <c:set var="dragAndDropEnable" value="${mainSessionController.dragNDropEnabled && dAndDropEnable && not dndDisabledLocally}" />
  
    <c:set var="userProfile" value="${fn:toLowerCase(param.Profile)}" scope="page"/>
    <c:set var="contextualMenuEnabled" value="${'admin' eq userProfile || 'publisher' eq userProfile || 'writer' eq userProfile}" scope="page" />
  