indexing bugfixes
This commit is contained in:
parent
1182047357
commit
1d29f64451
@ -195,7 +195,7 @@ Index =
|
|||||||
for i in [1..maxPageNum] by 1
|
for i in [1..maxPageNum] by 1
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
textContent: i
|
textContent: i
|
||||||
href: if i then i else './'
|
href: if i is 1 then './' else i
|
||||||
nodes.push $.tn('['), a, $.tn '] '
|
nodes.push $.tn('['), a, $.tn '] '
|
||||||
$.rmAll pagesRoot
|
$.rmAll pagesRoot
|
||||||
$.add pagesRoot, nodes
|
$.add pagesRoot, nodes
|
||||||
@ -219,7 +219,7 @@ Index =
|
|||||||
$.replace strong, strong.firstChild
|
$.replace strong, strong.firstChild
|
||||||
else
|
else
|
||||||
strong = $.el 'strong'
|
strong = $.el 'strong'
|
||||||
a = pagesRoot.children[pageNum]
|
a = pagesRoot.children[pageNum - 1]
|
||||||
$.before a, strong
|
$.before a, strong
|
||||||
$.add strong, a
|
$.add strong, a
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user