luci-app-opkg: fix bottom pager
Fixes: #6007, #6156 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
a173af166c
commit
ec3aac47c4
1 changed files with 2 additions and 3 deletions
|
@ -329,10 +329,9 @@ function display(pattern)
|
||||||
for (var i = 0; i < pagers.length; i++) {
|
for (var i = 0; i < pagers.length; i++) {
|
||||||
pagers[i].parentNode.style.display = '';
|
pagers[i].parentNode.style.display = '';
|
||||||
pagers[i].setAttribute('data-offset', 100);
|
pagers[i].setAttribute('data-offset', 100);
|
||||||
|
|
||||||
if (i == 0)
|
|
||||||
handlePage({ target: pagers[i].querySelector('.prev') });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
handlePage({ target: pagers[0].querySelector('.prev') });
|
||||||
}
|
}
|
||||||
|
|
||||||
function handlePage(ev)
|
function handlePage(ev)
|
||||||
|
|
Loading…
Reference in a new issue