luci-app-opkg: fix filter reset link action
authorJo-Philipp Wich <jo@mein.io>
Mon, 8 Nov 2021 19:23:34 +0000 (20:23 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 8 Nov 2021 19:23:34 +0000 (20:23 +0100)
Fixes: #5497
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-opkg/htdocs/luci-static/resources/view/opkg.js

index fe5600e880f0ae3ba2656d9d74d57148f08020ff..69b69be9b9364cc4c1e3101209936e8038d3f2fb 100644 (file)
@@ -347,7 +347,7 @@ function handlePage(ev)
        if (filter.value)
                placeholder = [
                        E('span', {}, _('No packages matching "<strong>%h</strong>".').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),