Changeset 44120 in spip-zone


Ignore:
Timestamp:
Feb 3, 2011, 11:15:07 PM (9 years ago)
Author:
cedric@…
Message:

reorganisation des scripts en un seul. Mais il semble qu'il y a un bug js sur la page mediatheque, au retour de l'upload d'un doc. A debug

Location:
_core_/plugins/medias
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/medias/formulaires/inc-upload_document.html

    r44008 r44120  
    135135
    136136<script type='text/javascript'>/*<!#EVAL{chr(91)}CDATA#EVAL{chr(91)}*/
     137if (window.jQuery){
    137138function change_methode(methode){
    138139        var id = "#joindre_"+methode+"#GET{domid}";
     
    145146}
    146147jQuery(function(){change_methode('#GET{methode}');});
     148}
    147149/*#EVAL{chr(93)}[(#EVAL{chr(93)})]>*/</script>
  • _core_/plugins/medias/prive/contenu/portfolio_document.html

    r43978 r44120  
    1212(#INCLURE{fond=prive/squelettes/inclure/ajouter-documents}{env}{ajax})
    1313]
    14 [<script type="text/javascript" src='(#CHEMIN{javascript/jquery.MultiFile.js})'></script>
    15 <script type='text/javascript'>
    16 jQuery.MultiFile();
    17 onAjaxLoad(function(){jQuery.MultiFile();});
    18 </script>
    19 ]
  • _core_/plugins/medias/prive/editer/colonne_document.html

    r43981 r44120  
    33</div>
    44<INCLURE{fond=prive/squelettes/inclure/colonne-documents,env,ajax=documents}>
    5 [<script type="text/javascript" src='(#CHEMIN{javascript/jquery.MultiFile.js})'></script>
    6 <script type='text/javascript'>
    7 jQuery.MultiFile();
    8 onAjaxLoad(function(){jQuery.MultiFile();});
    9 </script>
    10 ]
  • _core_/plugins/medias/prive/squelettes/contenu/mediatheque.html

    r43978 r44120  
    22#FORMULAIRE_RECHERCHE_ECRIRE{#URL_ECRIRE{mediatheque}}
    33<div class='nettoyeur'></div>
    4 [(#ENV{editable,' '}|oui)
    54<INCLURE{fond=prive/squelettes/inclure/mediatheque-navigation}{media}{ajax}{env}>
    6 [<script type="text/javascript" src='(#CHEMIN{javascript/jquery.MultiFile.js})'></script>]
    7 <script type='text/javascript'>
    8 jQuery.MultiFile();
    9 onAjaxLoad(function(){jQuery.MultiFile();});
    10 </script>
    11 ]
     5<script type="text/javascript">/*<![CDATA[*/
     6var multifile='[(#CHEMIN{javascript/jquery.Multifile.js}|texte_script)]';
     7[(#INCLURE{javascript/medias_edit.js}|compacte{js})]
     8/*]]>*/</script>
  • _core_/plugins/medias/prive/squelettes/inclure/colonne-documents.html

    r44114 r44120  
    1111</BOUCLE_docslies>
    1212</div>
    13 <script type="text/javascript">
    14 function editbox_init(){
    15         jQuery('a.editbox:not(.nobox)')
    16         .attr("onclick","").addClass('nobox').click(function(){
    17                 var casedoc = jQuery(this).parents('div.item').eq(0);
    18                 jQuery(casedoc).animateLoading();
    19                 jQuery.modalboxload(parametre_url(jQuery(this).attr('href'),'var_zajax','contenu'),{
    20                         onClose: function (dialog) {jQuery(casedoc).ajaxReload();}
    21                 });
    22                 return false;
    23         });
    24 }
    25 if (window.jQuery)
    26 (function($){if(typeof onAjaxLoad == "function") onAjaxLoad(editbox_init);
    27         $(editbox_init);
    28  })(jQuery);
    29 </script>
     13<script type="text/javascript">/*<![CDATA[*/
     14var multifile='[(#CHEMIN{javascript/jquery.Multifile.js}|texte_script)]';
     15[(#INCLURE{javascript/medias_edit.js}|compacte{js})]
     16/*]]>*/</script>
  • _core_/plugins/medias/prive/squelettes/inclure/portfolio-documents.html

    r44114 r44120  
    4343</B_documents>
    4444
    45 <script type="text/javascript">
    46         function editbox_init(){
    47                 jQuery('a.editbox:not(.nobox)')
    48                 .attr("onclick","").addClass('nobox').click(function(){
    49                         var casedoc = jQuery(this).parents('div.item').eq(0);
    50                         jQuery(casedoc).animateLoading();
    51                         jQuery.modalboxload(parametre_url(jQuery(this).attr('href'),'var_zajax','contenu'),{
    52                                 onClose: function (dialog) {jQuery(casedoc).ajaxReload();}
    53                         });
    54                         return false;
    55                 });
    56         }
    57 if (window.jQuery)
    58 (function($){if(typeof onAjaxLoad == "function") onAjaxLoad(editbox_init);
    59         $(editbox_init);
    60  })(jQuery);
    61 </script>
     45<script type="text/javascript">/*<![CDATA[*/
     46var multifile='[(#CHEMIN{javascript/jquery.Multifile.js}|texte_script)]';
     47[(#INCLURE{javascript/medias_edit.js}|compacte{js})]
     48/*]]>*/</script>
    6249</div>
Note: See TracChangeset for help on using the changeset viewer.