summaryrefslogtreecommitdiff
path: root/js/read.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-05-16 13:21:29 +0300
committerAndrew Dolgov <[email protected]>2018-05-16 13:21:29 +0300
commit9599d67bcd04762b94f596edb013eee299046c92 (patch)
tree61ef212952886d417dd75ad893d1035003ad2ac6 /js/read.js
parenta96443e152a1d09944839d21a3ebd709bd161cf7 (diff)
use inline resource loading for theme content
Diffstat (limited to 'js/read.js')
-rw-r--r--js/read.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/js/read.js b/js/read.js
index 8d38ccd..04b1e47 100644
--- a/js/read.js
+++ b/js/read.js
@@ -275,7 +275,12 @@ function apply_theme() {
var themeUrl = baseUrl + "themes/" + theme + ".css";
$("#theme_css").attr("href", themeUrl);
- $(book.renderer.doc).find("#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);
+ });
+
});
}