From: Jo-Philipp Wich Date: Mon, 9 Jan 2023 23:01:00 +0000 (+0100) Subject: luci-app-opkg: fix bottom pager X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=ec3aac47c43d44d170af6a09d31493c2e8efe590;p=project%2Fluci.git luci-app-opkg: fix bottom pager Fixes: #6007, #6156 Signed-off-by: Jo-Philipp Wich --- diff --git a/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js b/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js index dd69161c82..d4d5b8b88b 100644 --- a/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js +++ b/applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js @@ -329,10 +329,9 @@ function display(pattern) for (var i = 0; i < pagers.length; i++) { pagers[i].parentNode.style.display = ''; pagers[i].setAttribute('data-offset', 100); - - if (i == 0) - handlePage({ target: pagers[i].querySelector('.prev') }); } + + handlePage({ target: pagers[0].querySelector('.prev') }); } function handlePage(ev)