summaryrefslogtreecommitdiff
path: root/read.html
diff options
context:
space:
mode:
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) {