sync theme with localStorage

This commit is contained in:
j 2011-10-28 12:58:45 +02:00
parent eef82edda8
commit 5da7b3b0e7
2 changed files with 2 additions and 0 deletions

View file

@ -269,6 +269,7 @@ window.onerror = function(error, url, line) {
}
Ox.Theme(pandora.user.ui.theme);
localStorage.theme = pandora.user.ui.theme;
pandora.$ui.appPanel = pandora.ui.appPanel().display();
Ox.Request.requests() && pandora.$ui.loadingIcon.start();
pandora.$ui.body.ajaxStart(pandora.$ui.loadingIcon.start);

View file

@ -174,6 +174,7 @@ pandora.ui.mainMenu = function() {
} else if (data.id == 'settheme') {
Ox.Theme(value);
pandora.UI.set('theme', value);
localStorage.theme = value;
} else if (data.id == 'showsiteposter') {
pandora.UI.set('showSitePoster', data.checked)
} else if (Ox.startsWith(data.id, 'sortgroup')) {