main menu: use pandora.setTheme; cosmetic changes

This commit is contained in:
rolux 2013-08-08 11:02:36 +00:00
parent d1ab4beb36
commit f963d38926

View file

@ -271,20 +271,10 @@ pandora.ui.mainMenu = function() {
pandora.UI.set({filters: filters}); pandora.UI.set({filters: filters});
} else if (data.id == 'setlocale') { } else if (data.id == 'setlocale') {
pandora.UI.set({locale: value}); pandora.UI.set({locale: value});
pandora.setLocale(value, function() { pandora.setLocale(value, pandora.$ui.appPanel.reload);
pandora.$ui.appPanel.reload();
});
} else if (data.id == 'settheme') { } else if (data.id == 'settheme') {
var iframe, src;
Ox.Theme(value);
pandora.UI.set({theme: value}); pandora.UI.set({theme: value});
iframe = Ox.UI.elements[$('#embed').data('oxid')]; pandora.setTheme(value);
if (iframe) {
src = iframe.attr('src');
if (src && Ox.parseURL(src).hostname == document.location.hostname) {
iframe.postMessage('settheme', {theme: value});
}
}
} else if (data.id == 'showsiteposters') { } else if (data.id == 'showsiteposters') {
pandora.UI.set({showSitePosters: data.checked}); pandora.UI.set({showSitePosters: data.checked});
} else if (Ox.startsWith(data.id, 'sortfilter')) { } else if (Ox.startsWith(data.id, 'sortfilter')) {