WebUI: prevent passing wrong parameter
commit1179fc3de3d4707edb87328f54f86e5c8579f1e4
authorChocobo1 <Chocobo1@users.noreply.github.com>
Fri, 9 Aug 2024 07:52:46 +0000 (9 15:52 +0800)
committerChocobo1 <Chocobo1@users.noreply.github.com>
Sat, 17 Aug 2024 06:02:13 +0000 (17 14:02 +0800)
treea0bacd1b2f012ad0c0994d4a730537fd6a7ada42
parente069fbc37f9dfa7dcaae32238bdb4770b8587538
WebUI: prevent passing wrong parameter

The `event` object will be passed as the first parameter to the event handler. So wrap the
event handler with a closure to prevent `event` leaking to other functions.
src/webui/www/private/scripts/client.js
src/webui/www/private/scripts/contextmenu.js
src/webui/www/private/scripts/search.js
src/webui/www/private/views/searchplugins.html