diff options
author | Richard Worth <rdworth@gmail.com> | 2009-09-19 15:19:42 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2009-09-19 15:19:42 +0000 |
commit | f164edbdd97fb0c4e1dd1012d79225b8a66205e5 (patch) | |
tree | 584bbf12f81b28e30910cf19149ca49b5425c83a /ui | |
parent | 122a6cdd5fbc1b3e1769bb4669dc68e7d8279177 (diff) | |
download | jquery-ui-f164edbdd97fb0c4e1dd1012d79225b8a66205e5.tar.gz jquery-ui-f164edbdd97fb0c4e1dd1012d79225b8a66205e5.zip |
slider: fixed disabled on init, methods enable and disable
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.slider.js | 6 |
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': |