forked from 0x2620/pandora
sync theme with localStorage
This commit is contained in:
parent
eef82edda8
commit
5da7b3b0e7
2 changed files with 2 additions and 0 deletions
|
@ -269,6 +269,7 @@ window.onerror = function(error, url, line) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Ox.Theme(pandora.user.ui.theme);
|
Ox.Theme(pandora.user.ui.theme);
|
||||||
|
localStorage.theme = pandora.user.ui.theme;
|
||||||
pandora.$ui.appPanel = pandora.ui.appPanel().display();
|
pandora.$ui.appPanel = pandora.ui.appPanel().display();
|
||||||
Ox.Request.requests() && pandora.$ui.loadingIcon.start();
|
Ox.Request.requests() && pandora.$ui.loadingIcon.start();
|
||||||
pandora.$ui.body.ajaxStart(pandora.$ui.loadingIcon.start);
|
pandora.$ui.body.ajaxStart(pandora.$ui.loadingIcon.start);
|
||||||
|
|
|
@ -174,6 +174,7 @@ pandora.ui.mainMenu = function() {
|
||||||
} else if (data.id == 'settheme') {
|
} else if (data.id == 'settheme') {
|
||||||
Ox.Theme(value);
|
Ox.Theme(value);
|
||||||
pandora.UI.set('theme', value);
|
pandora.UI.set('theme', value);
|
||||||
|
localStorage.theme = value;
|
||||||
} else if (data.id == 'showsiteposter') {
|
} else if (data.id == 'showsiteposter') {
|
||||||
pandora.UI.set('showSitePoster', data.checked)
|
pandora.UI.set('showSitePoster', data.checked)
|
||||||
} else if (Ox.startsWith(data.id, 'sortgroup')) {
|
} else if (Ox.startsWith(data.id, 'sortgroup')) {
|
||||||
|
|
Loading…
Reference in a new issue