1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/spip_ynh.git synced 2024-09-03 20:25:59 +02:00
spip_ynh/sources/plugins-dist/medias/javascript/medias_edit.js
2015-04-28 17:10:23 +02:00

26 lines
822 B
JavaScript

function editbox_init(){
jQuery('a.editbox:not(.nobox)')
.attr("onclick","").addClass('nobox').click(function(){
var casedoc = jQuery(this).parents('div.item').eq(0);
jQuery(casedoc).animateLoading();
jQuery.modalboxload(parametre_url(parametre_url(jQuery(this).attr('href'),'popin','oui'),'var_zajax','contenu'),{
onClose: function (dialog) {jQuery(casedoc).ajaxReload();}
});
return false;
});
}
var editbox_initialized;
if (!editbox_initialized){
if (window.jQuery){
editbox_initialized = true;
(function($){if(typeof onAjaxLoad == "function") onAjaxLoad(editbox_init);
$(editbox_init);
})(jQuery);
}
}
if (typeof multifile!="undefined" && typeof jQuery.MultiFile=="undefined"){
jQuery.getScript(multifile,function(){
jQuery.MultiFile();
onAjaxLoad(function(){jQuery.MultiFile();});
});
}