diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2015-03-13 19:41:18 +0100 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2015-03-18 12:11:44 +0100 |
commit | b99f5b305ff45b6ad7702a3f65f3abb2bd0ef387 (patch) | |
tree | 30917d2a822f695c3badb20d06d8bb122e292e8e /ui | |
parent | adcc9680ece200749056f7108856441f330abbba (diff) | |
download | jquery-ui-b99f5b305ff45b6ad7702a3f65f3abb2bd0ef387.tar.gz jquery-ui-b99f5b305ff45b6ad7702a3f65f3abb2bd0ef387.zip |
Progressbar: Fix style issues
Closes gh-1493
Diffstat (limited to 'ui')
-rw-r--r-- | ui/progressbar.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ui/progressbar.js b/ui/progressbar.js index d6127950e..69e550c58 100644 --- a/ui/progressbar.js +++ b/ui/progressbar.js @@ -16,11 +16,11 @@ //>>css.structure: ../themes/base/progressbar.css //>>css.theme: ../themes/base/theme.css -(function( factory ) { +( function( factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. - define([ + define( [ "jquery", "./core", "./widget" @@ -30,7 +30,7 @@ // Browser globals factory( jQuery ); } -}(function( $ ) { +}( function( $ ) { return $.widget( "ui.progressbar", { version: "@VERSION", @@ -54,13 +54,13 @@ return $.widget( "ui.progressbar", { // Constrain initial value this.oldValue = this.options.value = this._constrainedValue(); - this.element.attr({ + this.element.attr( { // Only set static values; aria-valuenow and aria-valuemax are // set inside _refreshValue() role: "progressbar", "aria-valuemin": this.min - }); + } ); this._addClass( "ui-progressbar", "ui-widget ui-widget-content" ); this.valueDiv = $( "<div>" ).appendTo( this.element ); @@ -136,7 +136,7 @@ return $.widget( "ui.progressbar", { this.valueDiv .toggle( this.indeterminate || value > this.min ) - .width( percentage.toFixed(0) + "%" ); + .width( percentage.toFixed( 0 ) + "%" ); this ._toggleClass( this.valueDiv, "ui-progressbar-complete", null, @@ -150,10 +150,10 @@ return $.widget( "ui.progressbar", { this._addClass( this.overlayDiv, "ui-progressbar-overlay" ); } } else { - this.element.attr({ + this.element.attr( { "aria-valuemax": this.options.max, "aria-valuenow": value - }); + } ); if ( this.overlayDiv ) { this.overlayDiv.remove(); this.overlayDiv = null; @@ -168,6 +168,6 @@ return $.widget( "ui.progressbar", { this._trigger( "complete" ); } } -}); +} ); -})); +} ) ); |