From f7f8b771c665f646330a21759b1fc8501033d675 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 11 Jun 2021 17:44:01 +0000 Subject: [PATCH] Bug 27929: (QA follow-up) Hide tag editor on regex Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt index e5086856c1..7c444d47c3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt @@ -395,15 +395,18 @@ $('a[name="field_regex"]').click(function() { var id = $(this).attr('id'); var editor = $(this).parent().find("[name='field_value']"); + var tag_editor = $(this).parent().find(".buttonDot"); var regex = $(this).parent().find("[name='regex_fields']"); var disable_input = $(this).parent().find("[name='disable_input']"); if ($(this).html() == 'RegEx') { $(editor).hide(); $(regex).show(); + $(tag_editor).hide(); $(this).html('Text'); $(disable_input).prop('disabled', true); } else { $(editor).show(); + $(tag_editor).show(); $(regex).hide(); $(this).html('RegEx'); $(disable_input).prop('disabled', false); -- 2.39.5