From 2535a48bee4f9859f66b7da2fb4e6aa045a3bae1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 18 Dec 2013 12:18:52 +0100 Subject: [PATCH] Bug 11414: Marc modification template limitations should alert the user Test plan: On the Marc modification tool: add/edit a new action on a field and define a condition on the same field. Verify that you get a warning message in red. see bug 11413 for more information --- .../en/modules/tools/marc_modification_templates.tt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt index 569b7f8..871fa77 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt @@ -11,11 +11,26 @@ $(document).ready(function() { }); $("span.match_regex_prefix" ).hide(); $("span.match_regex_suffix" ).hide(); + + $("#conditional_field,#from_field").change(function(){ + updateWarnings(); // For 3.14.x branches only, if bug 11319 is not pushed into + }); }); //]]>