forked from 0x2620/pandora
correctly update url when closing preferences dialog via close button
This commit is contained in:
parent
876dc8f138
commit
8d637a33f0
1 changed files with 30 additions and 25 deletions
|
@ -5,8 +5,8 @@ pandora.ui.preferencesDialog = function() {
|
|||
var tabs = [
|
||||
{id: 'account', title: 'Account', selected: true},
|
||||
{id: 'advanced', title: 'Advanced'}
|
||||
];
|
||||
var $tabPanel = Ox.TabPanel({
|
||||
],
|
||||
$tabPanel = Ox.TabPanel({
|
||||
content: function(id) {
|
||||
var $content = Ox.Element()
|
||||
.css({overflowY: 'auto'})
|
||||
|
@ -125,8 +125,8 @@ pandora.ui.preferencesDialog = function() {
|
|||
return $content;
|
||||
},
|
||||
tabs: tabs
|
||||
});
|
||||
var $dialog = Ox.Dialog({
|
||||
}),
|
||||
$dialog = Ox.Dialog({
|
||||
buttons: [
|
||||
Ox.Button({
|
||||
id: 'done',
|
||||
|
@ -134,7 +134,6 @@ pandora.ui.preferencesDialog = function() {
|
|||
}).bindEvent({
|
||||
click: function() {
|
||||
$dialog.close();
|
||||
pandora.UI.set({page: ''});
|
||||
}
|
||||
})
|
||||
],
|
||||
|
@ -145,7 +144,13 @@ pandora.ui.preferencesDialog = function() {
|
|||
minWidth: 432,
|
||||
title: 'Preferences',
|
||||
width: 432
|
||||
});
|
||||
}),
|
||||
closeDialog = $dialog.close;
|
||||
|
||||
$dialog.close = function() {
|
||||
closeDialog();
|
||||
pandora.UI.set({page: ''});
|
||||
};
|
||||
|
||||
return $dialog;
|
||||
|
||||
|
|
Loading…
Reference in a new issue