|
|
@ -2744,19 +2744,17 @@ function changeStyle() { |
|
|
|
if (theme === 'nin') { |
|
|
|
if (theme === 'nin') { |
|
|
|
style = 'theme_nin/css/style.css'; |
|
|
|
style = 'theme_nin/css/style.css'; |
|
|
|
profile = 'theme_nin/css/profile.css'; |
|
|
|
profile = 'theme_nin/css/profile.css'; |
|
|
|
|
|
|
|
// we use .ajax because .getScript requires 'unsafe-inline' CSP rule for now, see https://github.com/jquery/jquery/issues/3969
|
|
|
|
$.ajax({dataType: 'text', url: 'theme_nin/js/theme_option.js'}) |
|
|
|
$.ajax({dataType: 'text', url: 'theme_nin/js/theme_option.js'}) |
|
|
|
.done(function(script, textStatus) { |
|
|
|
.done(function(res) {eval(res);}); |
|
|
|
eval(script); // FIXME
|
|
|
|
|
|
|
|
//applyThemePptions();
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
; |
|
|
|
|
|
|
|
} else if (theme === 'calm') { |
|
|
|
} else if (theme === 'calm') { |
|
|
|
style = 'theme_calm/css/style.css'; |
|
|
|
style = 'theme_calm/css/style.css'; |
|
|
|
profile = 'theme_calm/css/profile.css'; |
|
|
|
profile = 'theme_calm/css/profile.css'; |
|
|
|
} else if (theme === 'original') { |
|
|
|
} else if (theme === 'original') { |
|
|
|
style = 'css/style.css'; |
|
|
|
style = 'css/style.css'; |
|
|
|
profile = 'css/profile.css'; |
|
|
|
profile = 'css/profile.css'; |
|
|
|
$.getScript('theme_original/js/theme_option.js'); |
|
|
|
$.ajax({dataType: 'text', url: 'theme_original/js/theme_option.js'}) |
|
|
|
|
|
|
|
.done(function(res) {eval(res);}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
$('#stylecss').attr('href', style); |
|
|
|
$('#stylecss').attr('href', style); |
|
|
|