diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-03-21 03:47:32 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-03-21 03:47:32 +0000 |
commit | c4f529917391bc0ea2aabcca99b2bf64c41470aa (patch) | |
tree | 2d778a0d4c79b7a06a863db4eeb3c892cb83133e /misc/ui/jquery.ui.progressbar.min.js | |
parent | b0be4e7234a77ea7649f3188751adcccb1d83399 (diff) | |
download | brdo-c4f529917391bc0ea2aabcca99b2bf64c41470aa.tar.gz brdo-c4f529917391bc0ea2aabcca99b2bf64c41470aa.tar.bz2 |
#679036 by marvil07, mfer, Rob Loach, et al: Upgrade to jQuery UI 1.8.
Diffstat (limited to 'misc/ui/jquery.ui.progressbar.min.js')
-rw-r--r-- | misc/ui/jquery.ui.progressbar.min.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/misc/ui/jquery.ui.progressbar.min.js b/misc/ui/jquery.ui.progressbar.min.js new file mode 100644 index 000000000..224b72505 --- /dev/null +++ b/misc/ui/jquery.ui.progressbar.min.js @@ -0,0 +1,16 @@ +// $Id$ + +/* + * jQuery UI Progressbar 1.8 + * + * Copyright (c) 2010 AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Progressbar + * + * Depends: + * jquery.ui.core.js + * jquery.ui.widget.js + */ +(function(a){a.widget("ui.progressbar",{options:{value:0},_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this._valueMin(),"aria-valuemax":this._valueMax(),"aria-valuenow":this._value()});this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.valueDiv.remove();a.Widget.prototype.destroy.apply(this,arguments)},value:function(b){if(b===undefined){return this._value()}this._setOption("value",b);return this},_setOption:function(b,c){switch(b){case"value":this.options.value=c;this._refreshValue();this._trigger("change");break}a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var b=this.options.value;if(typeof b!=="number"){b=0}if(b<this._valueMin()){b=this._valueMin()}if(b>this._valueMax()){b=this._valueMax()}return b},_valueMin:function(){return 0},_valueMax:function(){return 100},_refreshValue:function(){var b=this.value();this.valueDiv[b===this._valueMax()?"addClass":"removeClass"]("ui-corner-right").width(b+"%");this.element.attr("aria-valuenow",b)}});a.extend(a.ui.progressbar,{version:"1.8"})})(jQuery);
\ No newline at end of file |