Resizable: Don't allow resizing when disabled. Fixes #4743 - Disable Resize.

This commit is contained in:
Scott González 2009-08-04 02:02:57 +00:00
parent d6385b039b
commit aacecd6450

View File

@ -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) {