diff options
author | Andrew Dolgov <[email protected]> | 2018-06-29 16:56:40 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-06-29 16:56:40 +0300 |
commit | 9eb03d82b664cd72f94e844109a931a084d8ffbb (patch) | |
tree | 4ca0dab505bbfbbdac3f03e1dee49e8e3d98a8ca /read.html | |
parent | f1aa90fa6c4599107cee9149220da617b66b527e (diff) |
cleanup toc displays; fix generated toc; reinstate offline list covers
Diffstat (limited to 'read.html')
-rw-r--r-- | read.html | 15 |
1 files changed, 6 insertions, 9 deletions
@@ -584,8 +584,7 @@ var a = $("<a>") .attr('href', '#') - .html(row.label + " <b class='pull-right'>" + - "FIXME" + "</b>") + .html(row.label) .attr('data-href', row.href) .click(function() { book.rendition.display(a.attr('data-href')); @@ -612,8 +611,7 @@ try { var a = $("<a>") .attr('href', '#') - .html(row.label + " <b class='pull-right'>" + - "FIXME" + "</b>") + .html(row.label) .attr('data-href', row.href) .click(function() { book.rendition.display(a.attr('data-href')); @@ -633,16 +631,15 @@ list.html(""); - $.each(book.spine, function (i, row) { + $.each(book.spine.items, function (i, row) { var a = $("<a>") .attr('href', '#') .attr('title', row.url) - .html("Section " + (i+1) + " <b>(Loc. " + - book.pagination.pageFromCfi(row.cfi) + ")</b>") - .attr('data-cfi', row.cfi) + .html("Section " + (i+1)) + .attr('data-href', row.href) .click(function() { - book.gotoCfi(a.attr('data-cfi')); + book.rendition.display(a.attr('data-href')); }); list.append($("<li>").append(a)); |