From f46c3f561f6d079a4ac8fb8ba0134508479a9eff Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 29 Jun 2018 17:41:28 +0300 Subject: minor fixes for fullscreen mode, UI tweak for TOC icon --- read.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'read.html') 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($("").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) { -- cgit v1.2.3