Skip to content
Permalink
Browse files

Dialog: Fixed variable re-declaration.

  • Loading branch information
scottgonzalez committed Dec 11, 2008
1 parent 713761c commit f0051caec41b1830d1d34cc45bbadd83daac93d6
Showing with 16 additions and 18 deletions.
  1. +16 −18 ui/ui.dialog.js
@@ -70,6 +70,21 @@ $.widget("ui.dialog", {
'ui-corner-all'
)
.attr('role', 'button')
.hover(
function() {
$(this).addClass('ui-dialog-titlebar-close-hover');
},
function() {
$(this).removeClass('ui-dialog-titlebar-close-hover');
}
)
.mousedown(function(ev) {
ev.stopPropagation();
})
.click(function() {
self.close();
return false;
})
.appendTo(uiDialogTitlebar),

uiDialogTitlebarCloseText = (this.uiDialogTitlebarCloseText = $('<span/>'))
@@ -129,24 +144,7 @@ $.widget("ui.dialog", {
position: 'absolute',
bottom: 0
})
.appendTo(uiDialog),

uiDialogTitlebarClose = $('.ui-dialog-titlebar-close', uiDialogTitlebar)
.hover(
function() {
$(this).addClass('ui-dialog-titlebar-close-hover');
},
function() {
$(this).removeClass('ui-dialog-titlebar-close-hover');
}
)
.mousedown(function(ev) {
ev.stopPropagation();
})
.click(function() {
self.close();
return false;
});
.appendTo(uiDialog);

uiDialogTitlebar.find("*").add(uiDialogTitlebar).disableSelection();

0 comments on commit f0051ca

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