Last active
August 29, 2015 14:04
-
-
Save renews/b252a3ad5028903d7837 to your computer and use it in GitHub Desktop.
Global Bindings for showing loading on 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
$(document).ajaxStart(function() { | |
$("#loading").show(); | |
}); | |
$(document).ajaxStop(function() { | |
$("#loading").hide(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment