]> git.koha-community.org Git - koha.git/commit
Bug 17790: Fix js error on undefined autocomplete(...).data(...)
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Mon, 19 Dec 2016 11:55:59 +0000 (12:55 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Tue, 20 Dec 2016 13:25:19 +0000 (13:25 +0000)
commitd4b15e40b0a217712756a8a208d4aab97218bbac
treec0cb6a83a6754a69d0ac02d90a05f874d3b4c305
parent2f07f7b48eab65f8dbd84f50993e388aff907594
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 <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc