aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.resizable.js
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2009-02-28 21:23:19 +0000
committerRichard Worth <rdworth@gmail.com>2009-02-28 21:23:19 +0000
commit517d5ab62ca98da1eb2ed8d241b305fc21f88581 (patch)
tree7517db16b3d369432966effff5edd8f68305a36e /ui/ui.resizable.js
parentdf8d64a36a3e68c086ccc77130378c781e11904c (diff)
downloadjquery-ui-517d5ab62ca98da1eb2ed8d241b305fc21f88581.tar.gz
jquery-ui-517d5ab62ca98da1eb2ed8d241b305fc21f88581.zip
resizable: add ui-resizable-resizing class during resize
Diffstat (limited to 'ui/ui.resizable.js')
-rw-r--r--ui/ui.resizable.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/ui.resizable.js b/ui/ui.resizable.js
index 0815352ae..85c998e56 100644
--- a/ui/ui.resizable.js
+++ b/ui/ui.resizable.js
@@ -177,7 +177,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
this._mouseDestroy();
var _destroy = function(exp) {
- $(exp).removeClass("ui-resizable ui-resizable-disabled")
+ $(exp).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing")
.removeData("resizable").unbind(".resizable").find('.ui-resizable-handle').remove();
};
@@ -252,6 +252,7 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
var cursor = $('.ui-resizable-' + this.axis).css('cursor');
$('body').css('cursor', cursor == 'auto' ? this.axis + '-resize' : cursor);
+ el.addClass("ui-resizable-resizing");
this._propagate("start", event);
return true;
},
@@ -315,6 +316,8 @@ $.widget("ui.resizable", $.extend({}, $.ui.mouse, {
$('body').css('cursor', 'auto');
+ this.element.removeClass("ui-resizable-resizing");
+
this._propagate("stop", event);
if (this._helper) this.helper.remove();