Created
December 16, 2016 00:05
-
-
Save jacksonpires/5181d376683b76dba2f443dbd21ad45e to your computer and use it in GitHub Desktop.
Global AJAX Requests - Rails
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).ready(function() { | |
// Global ajax cursor change | |
$(document) | |
.ajaxStart(function () { | |
$('#global-spin').fadeIn('slow'); | |
}) | |
.ajaxStop(function () { | |
$('#global-spin').fadeOut('slow'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment