]> source.dussan.org Git - jquery-ui.git/commitdiff
Progressbar: XHTML code/reorder defaults
authorChi Cheng <cloudream@gmail.com>
Thu, 7 Aug 2008 20:17:02 +0000 (20:17 +0000)
committerChi Cheng <cloudream@gmail.com>
Thu, 7 Aug 2008 20:17:02 +0000 (20:17 +0000)
ui/ui.progressbar.js

index 124cb6f4437d5a5e940311e28ddae87697d77cad..bc4c10678847250becdaa697a51def26a3759594 100644 (file)
@@ -27,14 +27,14 @@ $.widget("ui.progressbar", {
                        rangeValue: 0,\r
                        threads: {},\r
                        \r
-                       wrapper: $("<div class='ui-progressbar-wrap'></div>"),\r
-                       bar: $("<div class='ui-progressbar-bar ui-hidden'></div>").css({\r
+                       wrapper: $('<div class="ui-progressbar-wrap"></div>'),\r
+                       bar: $('<div class="ui-progressbar-bar ui-hidden"></div>').css({\r
                                width: '0px', overflow: 'hidden', zIndex: 100\r
                        }),\r
-                       textElement: $("<div class='ui-progressbar-text'></div>").html(text).css({\r
+                       textElement: $('<div class="ui-progressbar-text"></div>').html(text).css({\r
                                width: '0px', overflow: 'hidden'\r
                        }),\r
-                       textBg: $("<div class='ui-progressbar-text ui-progressbar-text-back'></div>").html(text).css({\r
+                       textBg: $('<div class="ui-progressbar-text ui-progressbar-text-back"></div>').html(text).css({\r
                                        width: this.element.css('width')\r
                        })\r
                        \r
@@ -182,11 +182,11 @@ $.widget("ui.progressbar", {
 });\r
 \r
 $.ui.progressbar.defaults = {\r
+       addClass: '',\r
        duration: 3000,\r
+       range: true,\r
        stepping: 1,\r
        text: '',\r
-       range: true,\r
-       addClass: '',\r
        textClass: ''\r
 };\r
 \r