]> source.dussan.org Git - jquery-ui.git/commitdiff
Progressbar: hide valueDiv when value is 0. Fixes #7231 - valueDiv should be hidden...
authorKyle Florence <kyle.florence@gmail.com>
Fri, 8 Apr 2011 23:55:14 +0000 (16:55 -0700)
committerRichard Worth <rdworth@gmail.com>
Sat, 9 Apr 2011 18:27:10 +0000 (14:27 -0400)
ui/jquery.ui.progressbar.js

index cb89a1c394a32fa9d30f5eb6fa90e3b7bde85df6..e3b25cfd798b1d5c1d7e628f11d22e426010e586 100644 (file)
@@ -93,6 +93,7 @@ $.widget( "ui.progressbar", {
                }
 
                this.valueDiv
+                       .toggle( value > this.min )
                        .toggleClass( "ui-corner-right", value === this.options.max )
                        .width( percentage.toFixed(0) + "%" );
                this.element.attr( "aria-valuenow", value );