},\r
enable: function() {\r
this.element.removeClass("ui-resizable-disabled");\r
- this.disabled = false;\r
+ this.options.disabled = false;\r
},\r
disable: function() {\r
this.element.addClass("ui-resizable-disabled");\r
- this.disabled = true;\r
+ this.options.disabled = true;\r
},\r
mouseStart: function(e) {\r
- if(this.disabled) return false;\r
+ if(this.options.disabled) return false;\r
\r
var handle = false;\r
for(var i in this.options.handles) {\r
this.helper = $(document.createElement('div')).css({border:'1px dotted black'});\r
},\r
toggle: function() {\r
- if(this.disabled){\r
+ if(this.options.disabled){\r
this.enable();\r
} else {\r
this.disable();\r
},\r
enable: function() {\r
this.element.removeClass("ui-selectable-disabled");\r
- this.disabled = false;\r
+ this.options.disabled = false;\r
},\r
disable: function() {\r
this.element.addClass("ui-selectable-disabled");\r
- this.disabled = true;\r
+ this.options.disabled = true;\r
},\r
mouseStart: function(e) {\r
var self = this;\r
\r
this.opos = [e.pageX, e.pageY];\r
\r
- if (this.disabled)\r
+ if (this.options.disabled)\r
return;\r
\r
var options = this.options;\r
var self = this;\r
this.dragged = true;\r
\r
- if (this.disabled)\r
+ if (this.options.disabled)\r
return;\r
\r
var options = this.options;\r
},\r
enable: function() {\r
this.element.removeClass("ui-slider-disabled");\r
- this.disabled = false;\r
+ this.options.disabled = false;\r
},\r
disable: function() {\r
this.element.addClass("ui-slider-disabled");\r
- this.disabled = true;\r
+ this.options.disabled = true;\r
},\r
setData: function(key, value) {\r
this.options[key] = value;\r
if(this == e.target)\r
clickedHandle = true;\r
});\r
- if (clickedHandle || this.disabled || !(this.currentHandle || this.previousHandle))\r
+ if (clickedHandle || this.options.disabled || !(this.currentHandle || this.previousHandle))\r
return;\r
\r
// If a previous handle was focussed, focus it again\r
\r
this.propagate('start', e);\r
\r
- if(!this.disabled) {\r
+ if(!this.options.disabled) {\r
if(this.currentHandle) this.blur(this.currentHandle);\r
this.focus(handle,1);\r
- return !this.disabled;\r
+ return !this.options.disabled;\r
}\r
},\r
mouseDrag: function(e) {\r