From 8cf4ceab2f8ab928cf92ee3767db5a66b6a58b15 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 Signed-off-by: Kyle M Hall --- .../modules/tools/marc_modification_templates.tt | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) 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 + }); }); //]]>