mirror of
https://github.com/lrsjng/h5ai.git
synced 2024-09-20 04:38:51 -04:00
Adds missing jQuery.spin plugin.
This commit is contained in:
parent
cb6eb4b1b3
commit
9648bd6a42
1 changed files with 21 additions and 0 deletions
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));
|
Loading…
Reference in a new issue