2011-03-05 21:27:20 -08:00
|
|
|
/**
|
|
|
|
|
* Javascript that applies to the whole site.
|
|
|
|
|
*
|
|
|
|
|
* Apply button() to buttons and submit buttons for jQuery UI styling.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
$(function() {
|
|
|
|
|
$("button, input:submit").button();
|
2011-05-15 23:13:21 -07:00
|
|
|
|
|
|
|
|
$('#globalAjaxLoading')
|
|
|
|
|
.hide() // hide it initially
|
|
|
|
|
.ajaxStart(function() {
|
|
|
|
|
$(this).show();
|
|
|
|
|
})
|
|
|
|
|
.ajaxStop(function() {
|
|
|
|
|
$(this).hide();
|
|
|
|
|
})
|
|
|
|
|
;
|
|
|
|
|
|
2011-03-05 21:27:20 -08:00
|
|
|
});
|