From b34bd7d027c31db1f6fdd68905e1abb79264dd12 Mon Sep 17 00:00:00 2001 From: Simon Grim Date: Tue, 4 Nov 2014 22:34:42 +0600 Subject: [PATCH] move theme-specific JS to theme-related files --- js/interface_common.js | 2 ++ js/interface_home.js | 17 ----------------- theme_nin/js/theme_option.js | 22 +++++++++++++++++----- theme_original/js/theme_option.js | 8 ++++++++ 4 files changed, 27 insertions(+), 22 deletions(-) create mode 100755 theme_original/js/theme_option.js diff --git a/js/interface_common.js b/js/interface_common.js index ba93950..04f97e2 100644 --- a/js/interface_common.js +++ b/js/interface_common.js @@ -1229,7 +1229,9 @@ function changeStyle() { { style = 'css/style.css'; profile = 'css/profile.css'; + $.getScript('theme_original/js/theme_option.js'); } + $('#stylecss').attr('href', style); $('#profilecss').attr('href', profile); $("