From 5da7b3b0e79f1016e0175462b43d97304c18409f Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 28 Oct 2011 12:58:45 +0200 Subject: [PATCH] sync theme with localStorage --- static/js/init.js | 1 + static/js/pandora/menu.js | 1 + 2 files changed, 2 insertions(+) diff --git a/static/js/init.js b/static/js/init.js index 0504471b5..9990b8a54 100644 --- a/static/js/init.js +++ b/static/js/init.js @@ -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); diff --git a/static/js/pandora/menu.js b/static/js/pandora/menu.js index 9f684d869..eadab0eb3 100644 --- a/static/js/pandora/menu.js +++ b/static/js/pandora/menu.js @@ -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')) {