Browse Source

fix theme for new users (if localStorage['theme'] == is not defined )

master
Shift 11 years ago
parent
commit
141db05b37
  1. 12
      js/calm.js

12
js/calm.js

@ -76,17 +76,17 @@ function mensAutocomplete() { @@ -76,17 +76,17 @@ function mensAutocomplete() {
function changeStyle() {
var style, profile, menu;
if(localStorage['theme'] == 'calm')
{
style = 'css/style.css';
profile = 'css/profile.css';
menu = '.calm_menu';
}else if(localStorage['theme'] == 'original')
if(localStorage['theme'] == 'original')
{
style = 'css/orange/style.css';
profile = 'css/orange/profile.css';
menu = '.original_menu';
$(".userMenu-dhtindicator").hide();
}else
{
style = 'css/style.css';
profile = 'css/profile.css';
menu = '.calm_menu';
}
$('#stylecss').attr('href', style);
$('#profilecss').attr('href', profile);

Loading…
Cancel
Save