X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fprive%2Fjavascript%2FajaxCallback.js;h=118fc314949581cc9eac5f46a082468fd57d6a7f;hp=27bba46671a41be72dc7330e586fbf8f547a1f13;hb=f489d45ae677afde12ba9c9f70f463ea34787b45;hpb=0dda6af18a04031b1ca8e217187966077e752fe3 diff --git a/www/prive/javascript/ajaxCallback.js b/www/prive/javascript/ajaxCallback.js index 27bba46..118fc31 100644 --- a/www/prive/javascript/ajaxCallback.js +++ b/www/prive/javascript/ajaxCallback.js @@ -78,8 +78,11 @@ if(!jQuery.spip.load_handlers) { jQuery.ajax = function(type) { var s = jQuery.extend(true, {}, jQuery.ajaxSettings, type); var callbackContext = s.context || s; - if (jQuery.ajax.caller==jQuery.spip.intercepted.load || jQuery.ajax.caller==jQuery.spip.intercepted.ajaxSubmit) - return jQuery.spip.intercepted.ajax(type); + try { + if (jQuery.ajax.caller==jQuery.spip.intercepted.load || jQuery.ajax.caller==jQuery.spip.intercepted.ajaxSubmit) + return jQuery.spip.intercepted.ajax(type); + } + catch (err){} var orig_complete = s.complete || function() {}; type.complete = function(res,status) { // Do not fire OnAjaxLoad if the dataType is not html