aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.slider.js
diff options
context:
space:
mode:
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':