mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-12 00:44:01 +02:00
Adds missing jQuery.spin plugin.
This commit is contained in:
21
src/_h5ai/js/lib/jquery.spin-1.2.6.js
Normal file
21
src/_h5ai/js/lib/jquery.spin-1.2.6.js
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
(function ($) {
|
||||
|
||||
$.fn.spin = function (options) {
|
||||
|
||||
return this.each(function () {
|
||||
|
||||
var $this = $(this),
|
||||
data = $this.data();
|
||||
|
||||
if (data.spinner) {
|
||||
data.spinner.stop();
|
||||
delete data.spinner;
|
||||
}
|
||||
|
||||
if (options !== false) {
|
||||
data.spinner = new Spinner($.extend({color: $this.css('color')}, options)).spin(this);
|
||||
}
|
||||
});
|
||||
};
|
||||
}(jQuery));
|
Reference in New Issue
Block a user