Created
December 9, 2013 14:44
-
-
Save mcraz/7873292 to your computer and use it in GitHub Desktop.
Show spinning refresh icon (FontAwesome) when AJAX calls are in progress.
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
// AJAX Loading Proccesor | |
$("#data-terminal-processor").bind("ajaxStart", function(){ | |
$(this).removeClass("icon-desktop").addClass("icon-refresh icon-spin");; | |
$("#display-teminal-header").hide(); | |
}).bind("ajaxStop", function(){ | |
$(this).removeClass("icon-refresh icon-spin").addClass("icon-desktop");; | |
$("#display-teminal-header").show(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment