main menu: set extras according to pandora.site.menuExtras
This commit is contained in:
parent
f06285185b
commit
eb89f530c8
1 changed files with 9 additions and 3 deletions
|
@ -9,9 +9,15 @@ pandora.ui.mainMenu = function() {
|
|||
fromMenu = false,
|
||||
fullscreenState = Ox.Fullscreen.getState(),
|
||||
that = Ox.MainMenu({
|
||||
extras: [
|
||||
pandora.$ui.loadingIcon = pandora.ui.loadingIcon()
|
||||
],
|
||||
extras: pandora.site.menuExtras.map(function(menuExtra) {
|
||||
if (menuExtra == 'user') {
|
||||
return pandora.$ui.userButton = pandora.ui.userButton();
|
||||
} else if (menuExtra == 'locale') {
|
||||
return pandora.$ui.localeButton = pandora.ui.localeButton();
|
||||
} else if (menuExtra == 'reload') {
|
||||
return pandora.$ui.loadingIcon = pandora.ui.loadingIcon();
|
||||
}
|
||||
}),
|
||||
id: 'mainMenu',
|
||||
menus: [].concat(
|
||||
[
|
||||
|
|
Loading…
Reference in a new issue