Adds missing jQuery.spin plugin.

This commit is contained in:
Lars Jung 2012-09-14 09:59:52 +02:00
parent cb6eb4b1b3
commit 9648bd6a42

View 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));