From ec3aac47c43d44d170af6a09d31493c2e8efe590 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 10 Jan 2023 00:01:00 +0100 Subject: [PATCH] luci-app-opkg: fix bottom pager Fixes: #6007, #6156 Signed-off-by: Jo-Philipp Wich --- .../luci-app-opkg/htdocs/luci-static/resources/view/opkg.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) -- 2.30.2