From 096aae31430bcd6f3429fef467514614d7aea3b0 Mon Sep 17 00:00:00 2001 From: Aleisha <aleishaamohia@hotmail.com> Date: Thu, 3 Mar 2016 02:20:47 +0000 Subject: [PATCH] Bug 15965: Koha to MARC mapping - table changes with selection of drop down menu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit EDIT: Removing JS line To test: 1) Go to Admin -> Koha to MARC Mapping 2) Test selecting biblio / biblioitems / items 3) Confirm the table content changes and behaves as it should which each selection Sponsored-by: Catalyst IT Signed-off-by: Frédéric Demians <f.demians@tamil.fr> --- .../intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt index b8f0a0c..d328172 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt @@ -4,7 +4,17 @@ [% IF ( else ) %]Koha to MARC mapping [% tagfield %][% END %]</title> [% INCLUDE 'doc-head-close.inc' %] +<script type="text/javascript"> +//<![CDATA[ +$(document).ready(function() { + $('#tablename').change(function() { + $('#koha2marc').submit(); + }); +}); +//]]> +</script> </head> + <body id="admin_koha2marclinks" class="admin"> [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %] @@ -70,7 +80,7 @@ [% IF ( else ) %] <h1>Koha to MARC mapping [% tagfield %]</h1> -<form action="[% script_name %]" method="post"> +<form action="[% script_name %]" method="post" id="koha2marc"> <p> <select name="tablename" id="tablename" size="1"> [% FOREACH value IN tablename.values %] @@ -81,7 +91,6 @@ [% END %] [% END %] </select> - <input type="submit" value="OK" /> </p> </form> <table> -- 2.7.1