integration/js/common.js
changeset 66 dd2fbf4c998f
parent 55 cedadc7d039a
child 70 2542e988f80c
--- a/integration/js/common.js	Fri May 31 17:57:12 2013 +0200
+++ b/integration/js/common.js	Mon Jun 03 13:33:16 2013 +0200
@@ -11,6 +11,7 @@
             typeMedia = $(this).attr('data-type-media'),
             modalTitleInfo = $(this).attr('data-title'),
             hideBibliotheque = $(this).hasAttr('data-hide-bibliotheque') ? true : false,
+            hideAddNew = $(this).hasAttr('data-hide-add-new') ? true : false,
             titleFront;
 
         switch(typeMedia){
@@ -23,6 +24,8 @@
             $("#modal-template").modal("show"); 
             if(hideBibliotheque)
                 $("#modal-template").find(".bibliotheque-link").hide();
+            if(hideAddNew)
+                $("#modal-template").find(".add-new").hide();
         });
 
     });