From 06b3f727378323089ee56a24999dd97c87887cc0 Mon Sep 17 00:00:00 2001 From: yvesf Date: Fri, 26 Nov 2010 18:44:25 +0100 Subject: change jquery theme, rm development stuff --- .../development-bundle/ui/jquery.ui.progressbar.js | 97 ---------------------- 1 file changed, 97 deletions(-) delete mode 100644 static/development-bundle/ui/jquery.ui.progressbar.js (limited to 'static/development-bundle/ui/jquery.ui.progressbar.js') diff --git a/static/development-bundle/ui/jquery.ui.progressbar.js b/static/development-bundle/ui/jquery.ui.progressbar.js deleted file mode 100644 index 3d1fc37..0000000 --- a/static/development-bundle/ui/jquery.ui.progressbar.js +++ /dev/null @@ -1,97 +0,0 @@ -/* - * jQuery UI Progressbar 1.8.6 - * - * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * http://docs.jquery.com/UI/Progressbar - * - * Depends: - * jquery.ui.core.js - * jquery.ui.widget.js - */ -(function( $, undefined ) { - -$.widget( "ui.progressbar", { - options: { - value: 0 - }, - - min: 0, - max: 100, - - _create: function() { - this.element - .addClass( "ui-progressbar ui-widget ui-widget-content ui-corner-all" ) - .attr({ - role: "progressbar", - "aria-valuemin": this.min, - "aria-valuemax": this.max, - "aria-valuenow": this._value() - }); - - this.valueDiv = $( "
" ) - .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(); - - $.Widget.prototype.destroy.apply( this, arguments ); - }, - - value: function( newValue ) { - if ( newValue === undefined ) { - return this._value(); - } - - this._setOption( "value", newValue ); - return this; - }, - - _setOption: function( key, value ) { - if ( key === "value" ) { - this.options.value = value; - this._refreshValue(); - this._trigger( "change" ); - if ( this._value() === this.max ) { - this._trigger( "complete" ); - } - } - - $.Widget.prototype._setOption.apply( this, arguments ); - }, - - _value: function() { - var val = this.options.value; - // normalize invalid value - if ( typeof val !== "number" ) { - val = 0; - } - return Math.min( this.max, Math.max( this.min, val ) ); - }, - - _refreshValue: function() { - var value = this.value(); - this.valueDiv - .toggleClass( "ui-corner-right", value === this.max ) - .width( value + "%" ); - this.element.attr( "aria-valuenow", value ); - } -}); - -$.extend( $.ui.progressbar, { - version: "1.8.6" -}); - -})( jQuery ); -- cgit v1.2.1