fix a bug that would cause the home screen to flicker when loading /home directly
This commit is contained in:
parent
99b79000d2
commit
889e7f46a6
3 changed files with 9 additions and 4 deletions
|
|
@ -74,6 +74,11 @@ pandora.ui.accountDialogOptions = function(action, value) {
|
|||
}).bindEvent('click', function() {
|
||||
pandora.$ui.accountDialog.options(pandora.ui.accountDialogOptions(type));
|
||||
pandora.$ui.accountForm.find('input')[0].focus();
|
||||
if (['signin', 'signup'].indexOf(type) > -1) {
|
||||
// fixme: similar problem as in siteDialog,
|
||||
// the URL controller should handle this
|
||||
history.replaceState({}, '', '/' + type);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue