Created
July 16, 2014 18:05
-
-
Save chasingmaxwell/613d295389ae556fb066 to your computer and use it in GitHub Desktop.
Determine whether there is an ajax request in progress managed by Drupal.ajax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
// Determine if any ajax call is currently in progress. | |
Drupal.ajaxInProgress = function() { | |
for (var id in Drupal.ajax) { | |
if (Drupal.ajax[id].ajaxing === true) { | |
return true; | |
} | |
} | |
return false; | |
}; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment