From: Jo-Philipp Wich Date: Mon, 8 Nov 2021 19:23:34 +0000 (+0100) Subject: luci-app-opkg: fix filter reset link action X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=02398a33837d1fe8fd23d933ad7ac32025144805;p=project%2Fluci.git luci-app-opkg: fix filter reset link action Fixes: #5497 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 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),