From 7d68febab106564af71247abdc78ac896980c667 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 4 Nov 2014 14:59:43 +0100 Subject: [PATCH] [PASSED QA] Bug 12944: The autocomplete should only be applied for the form If it's the result view, the autocomplete should not be apply to the input element (it does not exist). Signed-off-by: Katrin Fischer --- .../intranet-tmpl/prog/en/modules/acqui/histsearch.tt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt index 76ebc8e..4266530 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/histsearch.tt @@ -18,13 +18,14 @@ "sPaginationType": "four_button" } ) ); - - patron_autocomplete({ - patron_container: $("#basket_creators"), - input_autocomplete: $("#find_patron"), - patron_input_name: 'created_by', - field_to_retrieve: 'borrowernumber' - }); + [% UNLESS order_loop %] + patron_autocomplete({ + patron_container: $("#basket_creators"), + input_autocomplete: $("#find_patron"), + patron_input_name: 'created_by', + field_to_retrieve: 'borrowernumber' + }); + [% END %] }); //]]> -- 1.9.1