summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-06-29 17:41:28 +0300
committerAndrew Dolgov <[email protected]>2018-06-29 17:41:28 +0300
commitf46c3f561f6d079a4ac8fb8ba0134508479a9eff (patch)
tree093d74241b942a6a5bc317e71dc52c3be5e756f4 /read.html
parent74de43f86f614b5771ffb3dd16d43b0fcbf95a36 (diff)
minor fixes for fullscreen mode, UI tweak for TOC icon
Diffstat (limited to 'read.html')
-rw-r--r--read.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/read.html b/read.html
index 3a4d790..f70db70 100644
--- a/read.html
+++ b/read.html
@@ -723,7 +723,7 @@
});
rendition.on('rendered', function(chapter) {
- $(".chapter").html("");
+ $(".chapter").html($("<span>").addClass("glyphicon glyphicon-th-list"));
try {
var location = book.rendition.currentLocation();
@@ -761,7 +761,8 @@
});
- if (toc_entry) $(".chapter").html(toc_entry.label);
+ if (toc_entry && toc_entry.label.trim())
+ $(".chapter").html(toc_entry.label);
}
} catch (e) {