summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-opkg/htdocs/luci-static/resources/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2023-01-10 00:01:00 +0100
committerJo-Philipp Wich <jo@mein.io>2023-01-10 00:01:55 +0100
commitec3aac47c43d44d170af6a09d31493c2e8efe590 (patch)
tree3b9a9fa5d39c38f17453b32d26f81ec34c5affbe /applications/luci-app-opkg/htdocs/luci-static/resources/view
parenta173af166cc2e6b2a10ab0262ef9578a23395d96 (diff)
luci-app-opkg: fix bottom pager
Fixes: #6007, #6156 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'applications/luci-app-opkg/htdocs/luci-static/resources/view')
-rw-r--r--applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js5
1 files 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)