aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.slider.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-09-19 15:19:42 +0000
committerRichard Worth <rdworth@gmail.com>2009-09-19 15:19:42 +0000
commitf164edbdd97fb0c4e1dd1012d79225b8a66205e5 (patch)
tree584bbf12f81b28e30910cf19149ca49b5425c83a /ui/jquery.ui.slider.js
parent122a6cdd5fbc1b3e1769bb4669dc68e7d8279177 (diff)
downloadjquery-ui-f164edbdd97fb0c4e1dd1012d79225b8a66205e5.tar.gz
jquery-ui-f164edbdd97fb0c4e1dd1012d79225b8a66205e5.zip
slider: fixed disabled on init, methods enable and disable
Diffstat (limited to 'ui/jquery.ui.slider.js')
-rw-r--r--ui/jquery.ui.slider.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/jquery.ui.slider.js b/ui/jquery.ui.slider.js
index f2ea5f67e..ca2dad2eb 100644
--- a/ui/jquery.ui.slider.js
+++ b/ui/jquery.ui.slider.js
@@ -29,6 +29,10 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
+ " ui-widget"
+ " ui-widget-content"
+ " ui-corner-all");
+
+ if (o.disabled) {
+ this.element.addClass('ui-slider-disabled ui-disabled');
+ }
this.range = $([]);
@@ -439,8 +443,10 @@ $.widget("ui.slider", $.extend({}, $.ui.mouse, {
this.handles.filter(".ui-state-focus").blur();
this.handles.removeClass("ui-state-hover");
this.handles.attr("disabled", "disabled");
+ this.element.addClass("ui-disabled");
} else {
this.handles.removeAttr("disabled");
+ this.element.removeClass("ui-disabled");
}
case 'orientation':