use new form element syntax, continued

This commit is contained in:
rolux 2011-12-22 15:48:48 +00:00
commit 8528b05368
9 changed files with 73 additions and 53 deletions

View file

@ -73,7 +73,7 @@ pandora.ui.accountDialogOptions = function(action, value) {
id: type,
title: buttonTitle[type] + '...'
}).bindEvent('click', function() {
if (['signin', 'signup'].indexOf(type) > -1) {
if (['signin', 'signup'].indexOf(type) > -1 && type != pandora.user.ui.page) {
pandora.UI.set({page: type});
} else {
pandora.$ui.accountDialog.options(pandora.ui.accountDialogOptions(type));