From b8d4e990ad4be38db6e2c317483c7ed3222bb421 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 14 Mar 2012 14:34:27 +0100 Subject: [PATCH] Bug 5180: FIX autocomplete on overdues report - Switch off the CircAutocompl syspref - Set a (one or more) patron attr type searchable - go on the overdues page Firebug crash and a layout problem appears on the left. Firebug error is "YAHOO.widget.DS_XHR is not a constructor" retry with this patch. Signed-off-by: Owen Leonard Signed-off-by: Paul Poulain --- .../intranet-tmpl/prog/en/modules/circ/overdue.tt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt index fec6e821aa..c862738219 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt @@ -24,7 +24,9 @@ var attrcode = $("script", clone).attr("x-code"); var newsuffix = parts[1] + appendid; - create_auto_completion_responder(newsuffix,attrcode); + [% IF ( CircAutocompl ) %] + create_auto_completion_responder(newsuffix,attrcode); + [% END %] } parent.parentNode.insertBefore(clone, parent.nextSibling); @@ -33,6 +35,7 @@ var parent = node.parentNode; parent.parentNode.removeChild(parent); } + [% IF ( CircAutocompl ) %] function create_auto_completion_responder(uniqueid,attrcode) { YAHOO.util.Event.onContentReady("pattrodue-getready-"+uniqueid, function() { new function() { @@ -64,6 +67,7 @@ } }); } + [% END %] //]]>