From cab486066a581b4285fe05174ec93c75a95bd014 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 --- 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 1e6b87a4d3..43613ec420 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js +++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js @@ -642,6 +642,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.2