Created
April 25, 2010 20:09
-
-
Save joshknutson/378679 to your computer and use it in GitHub Desktop.
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
if (typeof jQuery == 'function') { | |
jQuery('#reloadJax').live('click', function(event){ | |
var loadingText = '<span class="CFDdebugLoader">Loading..</span>'; | |
jQuery('#reloadJax').html(loadingText); | |
$.get("#currentaddress#", function(data){ | |
jQuery('#reloadJax').text('AJAX Reinitialize'); | |
}); | |
event.preventDefault(); | |
}); | |
function addReload(){ | |
var vhtml = '<a id="reloadJax" class="CFDdebugButton ui-state-default ui-corner-all" title="AJAX Reinitialize" href="#currentaddress#">AJAX Reinitialize</a>'; | |
jQuery('#jaxReload').html(vhtml) | |
}; | |
addLoadEvent(addReload); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment