]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Rework] WebUI: migrate BS5 off jQuery bridge
authorAlexander Moisseev <moiseev@mezonplus.ru>
Sat, 4 Jul 2026 15:38:58 +0000 (18:38 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Sun, 5 Jul 2026 17:21:16 +0000 (20:21 +0300)
commit48203be3de6dfd1d16910cdfe3fad1a4e67b330d
tree644e49b64958915bead8fff0683afcfa9878f7e5
parent2861b19fe2b95b2093f5e1c5b1c59dbd78dd2895
[Rework] WebUI: migrate BS5 off jQuery bridge

Replace the Bootstrap 5 jQuery bridge (.modal/.popover/.trigger
"click.bs.dropdown") with the vanilla constructor API
(bootstrap.{Modal,Popover,Dropdown}.getOrCreateInstance) in
rspamd.js, config.js and libft.js, capturing the bootstrap module
where needed.

Prerequisite for removing jQuery: the bridge only activates when
jQuery is loaded, while the vanilla API works regardless. With jQuery
still present the existing $(el).on("*.bs.*") subscriptions keep
firing, so those stay jQuery for now and move to addEventListener
together with the rest of the jQuery removal. The main.js shim
deps:["jquery"] becomes redundant and is dropped in the final stage.
interface/js/app/config.js
interface/js/app/libft.js
interface/js/app/rspamd.js