fix a bug that would cause the home screen to flicker when loading /home directly

This commit is contained in:
rolux 2011-11-08 11:48:40 +00:00
commit 889e7f46a6
3 changed files with 9 additions and 4 deletions

View file

@ -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);
}
});
}
}