Skip to content

Commit

Permalink
Dialog: Fixed variable re-declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Dec 11, 2008
1 parent 713761c commit f0051ca
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions ui/ui.dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/>'))
Expand Down Expand Up @@ -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();

Expand Down

0 comments on commit f0051ca

Please sign in to comment.