From 9e35d026a06ea2ee301564aaf6581d872e2fdd85 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 (cherry picked from commit a2f8ba3112699f589e21582a13061d1b7bf7c131) Signed-off-by: Fridolin Somers --- 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 209851539f..25a492b4b6 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 @@ -41,15 +41,18 @@ $(document).ready(function(){ $('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