The jQuery ajaxStart/Stop functions are being called at the wrong time.
The ajaxStart/ajaxStop functions were being called before the document was ready and the 'ajax-indicator' element existed. This meant that they would never be called when an ajax event happened.
This commit is contained in:
parent
c9a403a4b5
commit
27160b76f5
@ -470,13 +470,12 @@ jQuery.ajaxSetup({
|
||||
'beforeSend': function(xhr) {xhr.setRequestHeader("Accept", "text/javascript")}
|
||||
})
|
||||
|
||||
// Show/hide the ajax indicators
|
||||
jQuery("#ajax-indicator").ajaxStart(function(){ jQuery(this).show().css('z-index', '9999'); });
|
||||
jQuery("#ajax-indicator").ajaxStop(function(){ jQuery(this).hide(); });
|
||||
|
||||
/* TODO: integrate with existing code and/or refactor */
|
||||
jQuery(document).ready(function($) {
|
||||
|
||||
// Show/hide the ajax indicators
|
||||
jQuery("#ajax-indicator").ajaxStart(function(){ jQuery(this).show().css('z-index', '9999'); });
|
||||
jQuery("#ajax-indicator").ajaxStop(function(){ jQuery(this).hide(); });
|
||||
|
||||
// file table thumbnails
|
||||
$("table a.has-thumb").hover(function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user