diff options
author | Scott González <scott.gonzalez@gmail.com> | 2008-12-11 03:03:13 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2008-12-11 03:03:13 +0000 |
commit | a9912abb2a6e063c2002c622ca6675afaa3d8dd1 (patch) | |
tree | 8dfbc1aed822313c866be86b7f1a970f4f523716 | |
parent | f0051caec41b1830d1d34cc45bbadd83daac93d6 (diff) | |
download | jquery-ui-a9912abb2a6e063c2002c622ca6675afaa3d8dd1.tar.gz jquery-ui-a9912abb2a6e063c2002c622ca6675afaa3d8dd1.zip |
Progressbar: Fixed #3645: Use new CSS framework.
-rw-r--r-- | tests/progressbar.js | 17 | ||||
-rw-r--r-- | ui/ui.progressbar.js | 2 |
2 files changed, 4 insertions, 15 deletions
diff --git a/tests/progressbar.js b/tests/progressbar.js index 46b3a2bf7..087106510 100644 --- a/tests/progressbar.js +++ b/tests/progressbar.js @@ -8,11 +8,7 @@ var defaults = { disabled: false, - height: 20, - label: true, - labelAlign: 'left', - value: 0, - width: 300 + value: 0 }; var el; @@ -47,19 +43,10 @@ test("defaults", function() { test("set defaults on init", function() { el = $("#progressbar").progressbar({ - height: 30, - label: false, - labelAlign: 'right', - value: 50, - width: 200 + value: 50 }); - equals(el.progressbar("option", "height"), 30, "height"); - equals(el.progressbar("option", "label"), false, "label"); - equals(el.progressbar("option", "labelAlign"), "right", "labelAlign"); equals(el.progressbar("option", "value"), 50, "value"); - equals(el.progressbar("option", "width"), 200, "width"); - }); test("accessibility", function() { diff --git a/ui/ui.progressbar.js b/ui/ui.progressbar.js index 671812512..db65ccf30 100644 --- a/ui/ui.progressbar.js +++ b/ui/ui.progressbar.js @@ -21,6 +21,7 @@ $.widget("ui.progressbar", { this.element .addClass("ui-progressbar" + + " ui-widget" + " ui-widget-content" + " ui-corner-all") .attr({ @@ -40,6 +41,7 @@ $.widget("ui.progressbar", { this.element .removeClass("ui-progressbar" + + " ui-widget" + " ui-widget-content" + " ui-corner-all") .removeAttr("role") |