From 3061823b28caabe04165eac515fcb859b4eae427 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 26 May 2015 12:10:50 +0200 Subject: [PATCH] Bug 14189: Use keep_text for the authority header includes/authorities-search.inc already used the same behavior but with another method. For consistency it's better to have only 1 way to do that. Test plan: Go on the authority home page Fill the input in the header and click on tab 'search all headings' and 'keyword search' and confirm that the text you have filled is kept. Signed-off-by: Jonathan Druart --- .../prog/en/includes/authorities-search.inc | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc index cbdc939..94e1048 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search.inc @@ -14,11 +14,6 @@ $("#header_search").tabs( "option", "selected", 2 ); } } - $("#header_search input[type='text'], #header_search select").change(function() { - var myname = $(this).attr("name"); - var myval = $(this).val(); - $("#header_search [name='" + myname + "']").val(myval); - }); }); //]]> @@ -58,7 +53,7 @@ [% END %] - + - + - +