mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Persist selected theme in dropdown
This commit is contained in:
8
dist/js/sb-admin-2.js
vendored
8
dist/js/sb-admin-2.js
vendored
@@ -6,7 +6,7 @@ $(function() {
|
||||
});
|
||||
|
||||
function set_theme(theme) {
|
||||
$('link[title="main"]').attr('href', theme);
|
||||
$('link[title="main"]').attr('href', 'dist/css/' + theme);
|
||||
|
||||
// persist selected theme in cookie
|
||||
setCookie('theme',theme,90);
|
||||
@@ -20,9 +20,9 @@ function setCookie(cname, cvalue, exdays) {
|
||||
}
|
||||
|
||||
var themes = {
|
||||
"default": "dist/css/custom.css",
|
||||
"hackernews" : "dist/css/hackernews.css",
|
||||
"terminal" : "dist/css/terminal.css",
|
||||
"default": "custom.css",
|
||||
"hackernews" : "hackernews.css",
|
||||
"terminal" : "terminal.css",
|
||||
}
|
||||
|
||||
//Loads the correct sidebar on window load,
|
||||
|
Reference in New Issue
Block a user