From 02398a33837d1fe8fd23d933ad7ac32025144805 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 8 Nov 2021 20:23:34 +0100 Subject: [PATCH] luci-app-opkg: fix filter reset link action Fixes: #5497 Signed-off-by: Jo-Philipp Wich --- .../luci-app-opkg/htdocs/luci-static/resources/view/opkg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 fe5600e880..69b69be9b9 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 @@ -347,7 +347,7 @@ function handlePage(ev) if (filter.value) placeholder = [ E('span', {}, _('No packages matching "%h".').format(filter.value)), ' (', - E('a', { href: '#', onclick: 'handleReset(event)' }, _('Reset')), ')' + E('a', { href: '#', click: handleReset }, _('Reset')), ')' ]; cbi_update_table('#packages', currentDisplayRows.slice(offset, offset + 100), -- 2.30.2