Browse Source

Compat jQuery 3.1

debug_appliquer_traitement_champ-spip-3.2
Matthieu Marcillaud 6 years ago
parent
commit
a6a6ca3cd5
  1. 16
      prive/formulaires/selecteur/jquery.picker.js
  2. 4
      prive/squelettes/inclure/admin_vider_cache.html
  3. 4
      prive/squelettes/inclure/admin_vider_images.html

16
prive/formulaires/selecteur/jquery.picker.js

@ -9,11 +9,10 @@ item_picked et picker doivent seulement etre voisins
</xx>
...
**/
;if (window.jQuery)
(function($) {
;if (window.jQuery) {
jQuery(document).ready(function(){
var picked = jQuery('ul.item_picked');
jQuery(function($){
var picked = $('ul.item_picked');
if (picked.length) {
picked.find('>li').removeClass('last').find('li:last').addClass('last');
}
@ -78,14 +77,13 @@ item_picked et picker doivent seulement etre voisins
sel.parent().addClass('on');
return this; // don't break the chain
}
jQuery.fn.item_unpick = function(){
jQuery.fn.item_unpick = function() {
var picked = this.parents('ul.item_picked');
var me = this.parent();
jQuery(me).fadeOut('fast');
setTimeout(function(){
setTimeout(function () {
me.remove();
picked.find('>li').removeClass('last').find('li:last').addClass('last');
},400);
}, 400);
}
})(jQuery);
};

4
prive/squelettes/inclure/admin_vider_cache.html

@ -3,7 +3,9 @@
<div id="placehoder_taille_cache"><p>&nbsp;</p></div>
<script type="text/javascript">
jQuery(function(){jQuery('#placehoder_taille_cache').animateLoading().load('[(#URL_ACTION_AUTEUR{calculer_taille_cache,skel}|replace{&amp;,&})]');});
jQuery(function($){
$('#placehoder_taille_cache').animateLoading().load('[(#URL_ACTION_AUTEUR{calculer_taille_cache,skel}|replace{&amp;,&})]');
});
</script>
<noscript>
<iframe src="#URL_ACTION_AUTEUR{calculer_taille_cache,skel}" style="width: 100%;height: 3em;overflow: hidden;"></iframe>

4
prive/squelettes/inclure/admin_vider_images.html

@ -4,7 +4,9 @@
<div id="placehoder_taille_cache_images"><p>&nbsp;<br />&nbsp;<br />&nbsp;<br /></p></div>
<script type="text/javascript">
jQuery(function(){jQuery('#placehoder_taille_cache_images').animateLoading().load('[(#URL_ACTION_AUTEUR{calculer_taille_cache,images}|replace{&amp;,&})]');});
jQuery(function($){
$('#placehoder_taille_cache_images').animateLoading().load('[(#URL_ACTION_AUTEUR{calculer_taille_cache,images}|replace{&amp;,&})]');
});
</script>
<noscript>
<iframe src="#URL_ACTION_AUTEUR{calculer_taille_cache,images}" style="width: 100%;height: 3em;overflow: hidden;"></iframe>

Loading…
Cancel
Save