diff options
author | Scott González <scott.gonzalez@gmail.com> | 2009-08-04 02:02:57 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2009-08-04 02:02:57 +0000 |
commit | aacecd6450f005dbc0316d4ef38917ea7aaded09 (patch) | |
tree | e0f982232ca23b9a7d7712f6f7652b7509ec0bd5 /ui | |
parent | d6385b039b603aa898c2e412c442dd064fdbe446 (diff) | |
download | jquery-ui-aacecd6450f005dbc0316d4ef38917ea7aaded09.tar.gz jquery-ui-aacecd6450f005dbc0316d4ef38917ea7aaded09.zip |
Resizable: Don't allow resizing when disabled. Fixes #4743 - Disable Resize.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.resizable.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js index 847337b08..c9ab4c8a9 100644 --- a/ui/ui.resizable.js +++ b/ui/ui.resizable.js @@ -203,14 +203,14 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, { }, _mouseCapture: function(event) { - var handle = false; - for(var i in this.handles) { - if($(this.handles[i])[0] == event.target) handle = true; + for (var i in this.handles) { + if ($(this.handles[i])[0] == event.target) { + handle = true; + } } - return this.options.disabled || !!handle; - + return !this.options.disabled && handle; }, _mouseStart: function(event) { |