Initial dev repository
[kcls-web.git] / opac / extras / mobile / mobile / js / load_spinner.js
diff --git a/opac/extras/mobile/mobile/js/load_spinner.js b/opac/extras/mobile/mobile/js/load_spinner.js
new file mode 100644 (file)
index 0000000..344739e
--- /dev/null
@@ -0,0 +1 @@
+module("load_spinner",imports("plugin"),function(){var d;d={image:"images/loading.gif"};return $.fn.load_spinner=function(a){var b,c;a=$.extend({},d,a);this.plugin("load_spinner").append(b=$("<img>").attr("src",a.image).hide()).refresh(c=function(){b.hide();return false}).ajaxStop(c).ajaxError(c).ajaxStart(function(){b.show();return false});return this}});