Allow multiple chapter index buttons
This commit is contained in:
parent
dfcd5962b5
commit
fae2dda4db
2
js/chapter.min.js
vendored
2
js/chapter.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1285,7 +1285,7 @@ function fcn_readingProgress() {
|
|||||||
// Append cloned chapter list once when the popup menu is opened
|
// Append cloned chapter list once when the popup menu is opened
|
||||||
_$$('.chapter-list-popup-toggle').forEach(element => {
|
_$$('.chapter-list-popup-toggle').forEach(element => {
|
||||||
element.addEventListener('click', () => {
|
element.addEventListener('click', () => {
|
||||||
_$('[data-target="popup-chapter-list"]')?.appendChild(fcn_chapterList.cloneNode(true));
|
element.querySelector('[data-target="popup-chapter-list"]')?.appendChild(fcn_chapterList.cloneNode(true));
|
||||||
}, { once: true });
|
}, { once: true });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user