I have a "global" script called global.js which is included on the header of the page.
$(document).ajaxStart(function(){
$('#ajax_loading').html('<div><img src="load.gif" /></div>');
$('#ajax_loading').show();
}).ajaxStop(function(){
$('#ajax_loading').hide();
});
On this_page.js I've tried
$(document).ajaxStart(function(){
return;
}).ajaxStop(function(){
return;
});
or
$(document).ajaxStart(function(){
event.stopImmediatePropagation();
}).ajaxStop(function(){
event.stopImmediatePropagation();
});
but the global.js functions are still executed.
Now on a page I want that those two functions (ajaxStart and ajaxStop) aren't executed on ajax calls. How can I solve the problem?
global.js is included before this_page.js.