diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-06-18 17:58:22 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-06-18 17:58:22 +0000 |
commit | d2b9d56e2432bd7d98da3333738c0cec08e7db9e (patch) | |
tree | 49f499bd179b1cd88d99703e04f486e8e5f70967 /ui/ui.dialog.js | |
parent | b057a04d5a30baa3c80811915d14f0853e37b6af (diff) | |
download | jquery-ui-d2b9d56e2432bd7d98da3333738c0cec08e7db9e.tar.gz jquery-ui-d2b9d56e2432bd7d98da3333738c0cec08e7db9e.zip |
Dialog - fixed #3017
Diffstat (limited to 'ui/ui.dialog.js')
-rw-r--r-- | ui/ui.dialog.js | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index 82af6433f..4e29f47f2 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -115,11 +115,13 @@ $.widget("ui.dialog", { handle: '.ui-dialog-titlebar', start: function(e, ui) { self.moveToTop(); - (options.dragStart && options.dragStart.apply(this, arguments)); + (options.dragStart && options.dragStart.apply(self.element[0], arguments)); + }, + drag: function(e, ui) { + (options.drag && options.drag.apply(self.element[0], arguments)); }, - drag: options.drag, stop: function(e, ui) { - (options.dragStop && options.dragStop.apply(this, arguments)); + (options.dragStop && options.dragStop.apply(self.element[0], arguments)); $.ui.dialog.overlay.resize(); } }); @@ -133,11 +135,15 @@ $.widget("ui.dialog", { maxHeight: options.maxHeight, minWidth: options.minWidth, minHeight: options.minHeight, - start: options.resizeStart, - resize: options.resize, + start: function() { + (options.resizeStart && options.resizeStart.apply(self.element[0], arguments)); + }, + resize: function(e, ui) { + (options.resize && options.resize.apply(self.element[0], arguments)); + }, handles: resizeHandles, stop: function(e, ui) { - (options.resizeStop && options.resizeStop.apply(this, arguments)); + (options.resizeStop && options.resizeStop.apply(self.element[0], arguments)); $.ui.dialog.overlay.resize(); } }); |