From 4a717b4680db108c9d5487653c70ef3be3b743e3 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 13 Dec 2024 09:21:10 +0100 Subject: [PATCH] Bug 30975: Fix upload plugin The upload plugin button has no 'buttonDot' class (unlike other plugins buttons) so its click event were not listened to. This patch fix the CSS selector in order to listen on click events for all plugins buttons Signed-off-by: Marcel de Rooy Signed-off-by: David Cook --- koha-tmpl/intranet-tmpl/prog/js/cataloging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js index 95e2a06332..55fade7494 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js +++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js @@ -834,6 +834,6 @@ $(document).ready(function() { // We use delegated event handlers here so that dynamically added elements // (like when cloning a field or a subfield) respond to these events // without having to re-attach events manually - $('.marc_editor').on('click', '.buttonDot', callClickPluginEventHandler); + $('.marc_editor').on('click', '.tag_editor.framework_plugin', callClickPluginEventHandler); $('.marc_editor').on('focusin focusout change mousedown mouseup keydown keyup', 'input.input_marceditor.framework_plugin', callPluginEventHandler); }); -- 2.39.5