From 878f595768ff3f02c7a20cf5b5cd3f29047f4793 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 19 Dec 2016 12:55:59 +0100 Subject: [PATCH] Bug 17790: Fix js error on undefined autocomplete(...).data(...) Bug 17418 moved some code to js_includes.inc. But if #findborrower does not exist, you cannot define _renderItem. Trivial fix. Test plan: [1] Find a page where this include is used and #findborrowers is absent. Like about.pl [2] Without this patch, you will have a js error in the js console. [3] With this patch, you should no longer have it. Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens --- .../intranet-tmpl/prog/en/includes/js_includes.inc | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc index 326f22a..414425a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc @@ -89,7 +89,7 @@ [% IF ( CircAutocompl ) %] [% END %] -- 2.1.4