forked from 0x2620/pandora
fix #1809 (User menu extra: swap click/doubleclick for signup/signin)
This commit is contained in:
parent
31d7f41b55
commit
8bf1389973
1 changed files with 3 additions and 3 deletions
|
@ -22,7 +22,7 @@ pandora.ui.userButton = function() {
|
||||||
style: 'symbol',
|
style: 'symbol',
|
||||||
title: 'user',
|
title: 'user',
|
||||||
tooltip: Ox._(
|
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'
|
: 'Click to open preferences or doubleclick to sign out'
|
||||||
),
|
),
|
||||||
type: 'image'
|
type: 'image'
|
||||||
|
@ -32,10 +32,10 @@ pandora.ui.userButton = function() {
|
||||||
})
|
})
|
||||||
.bindEvent({
|
.bindEvent({
|
||||||
singleclick: function() {
|
singleclick: function() {
|
||||||
pandora.UI.set({page: isGuest ? 'signin' : 'preferences'});
|
pandora.UI.set({page: isGuest ? 'signup' : 'preferences'});
|
||||||
},
|
},
|
||||||
doubleclick: function() {
|
doubleclick: function() {
|
||||||
pandora.UI.set({page: isGuest ? 'signup' : 'signout'});
|
pandora.UI.set({page: isGuest ? 'signin' : 'signout'});
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.appendTo(that);
|
.appendTo(that);
|
||||||
|
|
Loading…
Reference in a new issue