Skip to content

Instantly share code, notes, and snippets.

@tubbo
Forked from anonymous/gist:803084
Created January 30, 2011 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tubbo/803087 to your computer and use it in GitHub Desktop.
Save tubbo/803087 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