aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.resizable.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2009-08-04 02:02:57 +0000
committerScott González <scott.gonzalez@gmail.com>2009-08-04 02:02:57 +0000
commitaacecd6450f005dbc0316d4ef38917ea7aaded09 (patch)
treee0f982232ca23b9a7d7712f6f7652b7509ec0bd5 /ui/ui.resizable.js
parentd6385b039b603aa898c2e412c442dd064fdbe446 (diff)
downloadjquery-ui-aacecd6450f005dbc0316d4ef38917ea7aaded09.tar.gz
jquery-ui-aacecd6450f005dbc0316d4ef38917ea7aaded09.zip
Resizable: Don't allow resizing when disabled. Fixes #4743 - Disable Resize.
Diffstat (limited to 'ui/ui.resizable.js')
-rw-r--r--ui/ui.resizable.js10
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) {