Skip to content
Permalink
Browse files

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

…Resize.
  • Loading branch information...
scottgonzalez committed Aug 4, 2009
1 parent d6385b0 commit aacecd6450f005dbc0316d4ef38917ea7aaded09
Showing with 5 additions and 5 deletions.
  1. +5 −5 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) {

0 comments on commit aacecd6

Please sign in to comment.
You can’t perform that action at this time.