Dialog - fixed #3017

This commit is contained in:
Eduardo Lundgren 2008-06-18 17:58:22 +00:00
parent b057a04d5a
commit d2b9d56e24

View File

@ -115,11 +115,13 @@ $.widget("ui.dialog", {
handle: '.ui-dialog-titlebar', handle: '.ui-dialog-titlebar',
start: function(e, ui) { start: function(e, ui) {
self.moveToTop(); 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) { stop: function(e, ui) {
(options.dragStop && options.dragStop.apply(this, arguments)); (options.dragStop && options.dragStop.apply(self.element[0], arguments));
$.ui.dialog.overlay.resize(); $.ui.dialog.overlay.resize();
} }
}); });
@ -133,11 +135,15 @@ $.widget("ui.dialog", {
maxHeight: options.maxHeight, maxHeight: options.maxHeight,
minWidth: options.minWidth, minWidth: options.minWidth,
minHeight: options.minHeight, minHeight: options.minHeight,
start: options.resizeStart, start: function() {
resize: options.resize, (options.resizeStart && options.resizeStart.apply(self.element[0], arguments));
},
resize: function(e, ui) {
(options.resize && options.resize.apply(self.element[0], arguments));
},
handles: resizeHandles, handles: resizeHandles,
stop: function(e, ui) { stop: function(e, ui) {
(options.resizeStop && options.resizeStop.apply(this, arguments)); (options.resizeStop && options.resizeStop.apply(self.element[0], arguments));
$.ui.dialog.overlay.resize(); $.ui.dialog.overlay.resize();
} }
}); });