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 <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Julian Maurice 2024-12-13 09:21:10 +01:00 committed by Katrin Fischer
parent 1a91b01977
commit 05946c473b
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -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);
});