diff options
author | Richard Worth <rdworth@gmail.com> | 2010-02-03 01:22:02 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2010-02-03 01:22:02 +0000 |
commit | ec5e7ad95ba4c6697f3e66ae93ffc86c1152aefb (patch) | |
tree | a62e816355b3f2724e7fe332558359367c3b668d /ui/jquery.ui.resizable.js | |
parent | 30578eb0282d56fb71ab2dda6866134b3f3176ba (diff) | |
download | jquery-ui-ec5e7ad95ba4c6697f3e66ae93ffc86c1152aefb.tar.gz jquery-ui-ec5e7ad95ba4c6697f3e66ae93ffc86c1152aefb.zip |
resizable method destroy: put unwrapped original element in wrapper's place instead of at the end of wrapper's parent. Fixes #4940 - resizable('destroy') moves images to end of parent element
Diffstat (limited to 'ui/jquery.ui.resizable.js')
-rw-r--r-- | ui/jquery.ui.resizable.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.resizable.js b/ui/jquery.ui.resizable.js index e6728674b..3512b49be 100644 --- a/ui/jquery.ui.resizable.js +++ b/ui/jquery.ui.resizable.js @@ -204,7 +204,7 @@ $.widget("ui.resizable", $.ui.mouse, { if (this.elementIsWrapper) { _destroy(this.element); var wrapper = this.element; - wrapper.parent().append( + wrapper.after( this.originalElement.css({ position: wrapper.css('position'), width: wrapper.outerWidth(), @@ -212,7 +212,7 @@ $.widget("ui.resizable", $.ui.mouse, { top: wrapper.css('top'), left: wrapper.css('left') }) - ).end().remove(); + ).remove(); } this.originalElement.css('resize', this.originalResizeStyle); |