diff options
author | Scott González <scott.gonzalez@gmail.com> | 2012-12-12 11:21:49 -0500 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2012-12-12 11:21:49 -0500 |
commit | f5aaf874e9563ef90a1dec35700732acd58e8b43 (patch) | |
tree | 6b72d4e98d622a08adbc17c2e57d3d9dd1b81bcc /ui | |
parent | 747d8534520fc3abad81b3c171fa931149398d99 (diff) | |
download | jquery-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.js | 3 |
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 ) { |