fix #1809 (User menu extra: swap click/doubleclick for signup/signin)

This commit is contained in:
rolux 2013-08-11 09:37:43 +00:00
parent 31d7f41b55
commit 8bf1389973

View file

@ -22,7 +22,7 @@ pandora.ui.userButton = function() {
style: 'symbol',
title: 'user',
tooltip: Ox._(
isGuest ? 'Click to sign in or doubleclick to sign up'
isGuest ? 'Click to sign up or doubleclick to sign in'
: 'Click to open preferences or doubleclick to sign out'
),
type: 'image'
@ -32,10 +32,10 @@ pandora.ui.userButton = function() {
})
.bindEvent({
singleclick: function() {
pandora.UI.set({page: isGuest ? 'signin' : 'preferences'});
pandora.UI.set({page: isGuest ? 'signup' : 'preferences'});
},
doubleclick: function() {
pandora.UI.set({page: isGuest ? 'signup' : 'signout'});
pandora.UI.set({page: isGuest ? 'signin' : 'signout'});
}
})
.appendTo(that);