summaryrefslogtreecommitdiff
path: root/static/development-bundle/ui/jquery.ui.progressbar.js
diff options
context:
space:
mode:
authoryvesf <yvesf-git@xapek.org>2010-11-26 18:44:25 +0100
committeryvesf <yvesf-git@xapek.org>2010-11-26 18:44:25 +0100
commit06b3f727378323089ee56a24999dd97c87887cc0 (patch)
treec0ba6c0c09f119e11184115630afb72b3c298fe3 /static/development-bundle/ui/jquery.ui.progressbar.js
parentf28c098bb82406f8062a2b4c9305b73eae300372 (diff)
downloadbooksearch-06b3f727378323089ee56a24999dd97c87887cc0.tar.gz
booksearch-06b3f727378323089ee56a24999dd97c87887cc0.zip
change jquery theme, rm development stuff
Diffstat (limited to 'static/development-bundle/ui/jquery.ui.progressbar.js')
-rw-r--r--static/development-bundle/ui/jquery.ui.progressbar.js97
1 files changed, 0 insertions, 97 deletions
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 = $( "<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();
-
- $.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 );