summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)