From a2f8ba3112699f589e21582a13061d1b7bf7c131 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 Signed-off-by: Kyle M Hall --- 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