Commit c4359ac7 authored by gijs's avatar gijs
Browse files

Forgot to actually use the generated page numbers in the index and toc

parent 2bda1c62
......@@ -39,11 +39,11 @@
}
function getPageNum (el) {
if ('pageNumber' in el.dataset) {
return parseInt(el.dataset.pageNumber);
if ('realPageNumber' in el.dataset) {
return parseInt(el.dataset.realPageNumber);
}
else if (el.parentElement) {
return getPageNum(el.parentElement);
return getPageNum(el.realPageNumber);
}
}
......
......@@ -39,11 +39,11 @@
}
function getPageNum (el) {
if ('pageNumber' in el.dataset) {
return parseInt(el.dataset.pageNumber);
if ('realPageNumber' in el.dataset) {
return parseInt(el.dataset.realPageNumber);
}
else if (el.parentElement) {
return getPageNum(el.parentElement);
return getPageNum(el.realPageNumber);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment