luci-app-opkg: fix filter reset link action

Fixes: #5497
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 02398a3383)
This commit is contained in:
Jo-Philipp Wich 2021-11-08 20:23:34 +01:00
parent 6df9ae0234
commit 4745991a31

View 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),