Skip to content

Instantly share code, notes, and snippets.

Created January 30, 2011 18:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save anonymous/803084 to your computer and use it in GitHub Desktop.
Save anonymous/803084 to your computer and use it in GitHub Desktop.
jQuery(function($) {
// create a convenient toggleLoading function
var fooToggleSpinner = function() { $("#divSpinner").toggle() };
$("#runSpinner")
.bind("ajax:loading", fooToggleSpinner)
.bind("ajax:complete", fooToggleSpinner)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment