mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Resizable: Don't allow resizing when disabled. Fixes #4743 - Disable Resize.
This commit is contained in:
parent
d6385b039b
commit
aacecd6450
@ -203,14 +203,14 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
|
|||||||
},
|
},
|
||||||
|
|
||||||
_mouseCapture: function(event) {
|
_mouseCapture: function(event) {
|
||||||
|
|
||||||
var handle = false;
|
var handle = false;
|
||||||
for (var i in this.handles) {
|
for (var i in this.handles) {
|
||||||
if($(this.handles[i])[0] == event.target) handle = true;
|
if ($(this.handles[i])[0] == event.target) {
|
||||||
|
handle = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return this.options.disabled || !!handle;
|
return !this.options.disabled && handle;
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_mouseStart: function(event) {
|
_mouseStart: function(event) {
|
||||||
|
Loading…
Reference in New Issue
Block a user