Skip to content
Permalink
Browse files

Fixed #3059 - cannot select text in dialog content

  • Loading branch information
rdworth committed Jul 3, 2008
1 parent a14c917 commit 6e7572309a6c48e129f8fa0906b959c78a8f202d
Showing with 8 additions and 2 deletions.
  1. +1 −1 ui/ui.core.js
  2. +7 −1 ui/ui.dialog.js
@@ -196,7 +196,7 @@ $.ui.mouse = {

var self = this,
btnIsLeft = (e.which == 1),
elIsCancel = (typeof this.options.cancel == "string" ? $(e.target).is(this.options.cancel) : false);
elIsCancel = (typeof this.options.cancel == "string" ? $(e.target).parents().add(e.target).filter(this.options.cancel).length : false);
if (!btnIsLeft || elIsCancel || !this.mouseCapture(e)) {
return true;
}
@@ -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,

0 comments on commit 6e75723

Please sign in to comment.
You can’t perform that action at this time.