aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-12-12 11:21:49 -0500
committerScott González <scott.gonzalez@gmail.com>2012-12-12 11:21:49 -0500
commitf5aaf874e9563ef90a1dec35700732acd58e8b43 (patch)
tree6b72d4e98d622a08adbc17c2e57d3d9dd1b81bcc /ui
parent747d8534520fc3abad81b3c171fa931149398d99 (diff)
downloadjquery-ui-f5aaf874e9563ef90a1dec35700732acd58e8b43.tar.gz
jquery-ui-f5aaf874e9563ef90a1dec35700732acd58e8b43.zip
Progressbar: Moved .ui-progressbar-indeterminate to main element. Added tests for markup structure.
Diffstat (limited to 'ui')
-rw-r--r--ui/jquery.ui.progressbar.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/jquery.ui.progressbar.js b/ui/jquery.ui.progressbar.js
index 163bb06cd..e8b9b911a 100644
--- a/ui/jquery.ui.progressbar.js
+++ b/ui/jquery.ui.progressbar.js
@@ -112,9 +112,10 @@ $.widget( "ui.progressbar", {
this.valueDiv
.toggle( this.indeterminate || value > this.min )
.toggleClass( "ui-corner-right", value === this.options.max )
- .toggleClass( "ui-progressbar-indeterminate", this.indeterminate )
.width( percentage.toFixed(0) + "%" );
+ this.element.toggleClass( "ui-progressbar-indeterminate", this.indeterminate );
+
if ( this.indeterminate ) {
this.element.removeAttr( "aria-valuenow" );
if ( !this.overlayDiv ) {