From 6e7572309a6c48e129f8fa0906b959c78a8f202d Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Thu, 3 Jul 2008 01:37:06 +0000 Subject: Fixed #3059 - cannot select text in dialog content --- ui/ui.dialog.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ui/ui.dialog.js') diff --git a/ui/ui.dialog.js b/ui/ui.dialog.js index d6ebbacb1..27123b933 100644 --- a/ui/ui.dialog.js +++ b/ui/ui.dialog.js @@ -99,9 +99,14 @@ $.widget("ui.dialog", { self.close(); return false; }); - + + this.uiDialogTitlebar.find("*").add(this.uiDialogTitlebar).each(function() { + $.ui.disableSelection(this); + }); + if ($.fn.draggable) { uiDialog.draggable({ + cancel: '.ui-dialog-content', helper: options.dragHelper, handle: '.ui-dialog-titlebar', start: function(e, ui) { @@ -121,6 +126,7 @@ $.widget("ui.dialog", { if ($.fn.resizable) { uiDialog.resizable({ + cancel: '.ui-dialog-content', helper: options.resizeHelper, maxWidth: options.maxWidth, maxHeight: options.maxHeight, -- cgit v1.2.3