aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.progressbar.js
diff options
context:
space:
mode:
authorKyle Florence <kyle.florence@gmail.com>2011-04-08 16:55:14 -0700
committerRichard Worth <rdworth@gmail.com>2011-04-09 14:59:19 -0400
commit3c13b33682655be2a2f1c68b45cd500530997c41 (patch)
tree3ab8d025b6d35c03b3a0881912534de30d651e04 /ui/jquery.ui.progressbar.js
parente388153049503255810d4a871e06e9930de74c70 (diff)
downloadjquery-ui-3c13b33682655be2a2f1c68b45cd500530997c41.tar.gz
jquery-ui-3c13b33682655be2a2f1c68b45cd500530997c41.zip
Progressbar: hide valueDiv when value is 0. Fixes #7231 - valueDiv should be hidden when value is at 0%
(cherry picked from commit 3b77ac654b079a3098d12cca04d2397bb3863b85)
Diffstat (limited to 'ui/jquery.ui.progressbar.js')
-rw-r--r--ui/jquery.ui.progressbar.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/jquery.ui.progressbar.js b/ui/jquery.ui.progressbar.js
index 70c6e025c..1e6352ab8 100644
--- a/ui/jquery.ui.progressbar.js
+++ b/ui/jquery.ui.progressbar.js
@@ -95,6 +95,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 );