diff options
author | maggiewachs <maggie@filamentgroup.com> | 2010-04-16 14:24:49 -0400 |
---|---|---|
committer | maggiewachs <maggie@filamentgroup.com> | 2010-04-16 14:24:49 -0400 |
commit | 970ed9a67a533ab44b184babf52100dfbcfa7c96 (patch) | |
tree | 423aa90362d991c62af87ec7b1a094706f46cdcd /ui/jquery.ui.sortable.js | |
parent | 4ffe07457cb21332e9a33c319c1f1f610e532a27 (diff) | |
parent | d1033cc2b79067f31767bfe0bb1f9a761dae9b3f (diff) | |
download | jquery-ui-970ed9a67a533ab44b184babf52100dfbcfa7c96.tar.gz jquery-ui-970ed9a67a533ab44b184babf52100dfbcfa7c96.zip |
Merge branch 'master' of github.com:jquery/jquery-ui
Diffstat (limited to 'ui/jquery.ui.sortable.js')
-rw-r--r-- | ui/jquery.ui.sortable.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/jquery.ui.sortable.js b/ui/jquery.ui.sortable.js index 28be062f6..0fa3a1253 100644 --- a/ui/jquery.ui.sortable.js +++ b/ui/jquery.ui.sortable.js @@ -73,6 +73,18 @@ $.widget("ui.sortable", $.ui.mouse, { return this; }, + _setOption: function(key, value){ + if ( key === "disabled" ) { + this.options[ key ] = value; + + this.widget() + [ value ? "addClass" : "removeClass"]( "ui-sortable-disabled" ); + } else { + // Don't call widget base _setOption for disable as it adds ui-state-disabled class + $.Widget.prototype._setOption.apply(self, arguments); + } + }, + _mouseCapture: function(event, overrideHandle) { if (this.reverting) { |