summaryrefslogtreecommitdiff
path: root/js/read.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/read.js')
-rw-r--r--js/read.js10
1 files changed, 3 insertions, 7 deletions
diff --git a/js/read.js b/js/read.js
index 04b1e47..edbc2de 100644
--- a/js/read.js
+++ b/js/read.js
@@ -272,15 +272,11 @@ function apply_theme() {
else
theme = theme.replace("/", "");
- var themeUrl = baseUrl + "themes/" + theme + ".css";
+ var theme_url = baseUrl + "themes/" + theme + ".css";
- $("#theme_css").attr("href", themeUrl);
- //$(book.renderer.doc).find("#theme_css").attr('href', themeUrl);
-
- window.parent.$.get(baseUrl + 'themes/' + theme + '.css', function(data) {
- $(book.renderer.doc).find("#theme_css").html(data);
- });
+ $("#theme_css").attr("href", theme_url);
+ $(book.renderer.doc).find("#theme_css").text(_res_data[theme_url]);
});
}