From 63c5a813c994a4893eaef2cb87fcd26bc594c3e4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 21 Feb 2019 13:42:30 -0300 Subject: [PATCH] Bug 22389: (bug 15836 follow-up) Add Delete regex links on creating splitting source The "Delete" link does not exist when the form is empty. Test plan: Create a new classification splitting source Select "Regex" for routine => The delete link does not appear (you cannot remove if there is only one input) => It a regex => The 2 delete links appear Signed-off-by: Nick Clemens Signed-off-by: Nick Clemens --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt index 9f8a375324..a023321ac7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/classsources.tt @@ -254,6 +254,7 @@ [% ELSE %]
+ Delete
[% END %] @@ -400,6 +401,7 @@ $(document).ready(function(){ update_regex_block(); + update_delete_links_visibility(); $("#split_routine").on("change", function(){ update_regex_block(); }); -- 2.39.5