Skip to content

Commit cad3435

Browse files
committed
wrap displayValue in span.ui-progressbar-displayvalue
1 parent 10fc83d commit cad3435

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ui/jquery.ui.progressbar.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ $.widget( "ui.progressbar", {
3232
"aria-valuenow": this._value()
3333
});
3434

35-
var displayValue = (this.options.displayValue !== false) ? this.options.displayValue : '';
35+
var displayValue = '';
36+
if(this.options.displayValue !== false)
37+
displayValue = '<span class="ui-progressbar-displayvalue">'
38+
+ this.options.displayValue
39+
+ '</span>';
40+
3641
this.valueDiv = $( "<div class='ui-progressbar-value ui-widget-header ui-corner-left'>" + displayValue + "</div>" )
3742
.appendTo( this.element );
3843

0 commit comments

Comments
 (0)