From 7b2cd85b3c391071d66b14b17e9acde1080a355f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Fri, 9 Dec 2011 16:59:42 +0100 Subject: [PATCH] do not keep a cache of autocomplete values --- tabellio/searchform/js_macros.pt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabellio/searchform/js_macros.pt b/tabellio/searchform/js_macros.pt index 4f721ff..661f280 100644 --- a/tabellio/searchform/js_macros.pt +++ b/tabellio/searchform/js_macros.pt @@ -64,11 +64,11 @@ if(typeof(String.prototype.trim) === "undefined") { (function($) { $().ready(function() { $('.author-autocomplete').each(sync_authors).autocomplete(PORTAL_URL+'/listAuthors', { - 'matchContains': true, 'scroll': true, 'max': 30}).result(autocomplete_ready); + 'cacheLength': 0, 'matchContains': true, 'scroll': true, 'max': 30}).result(autocomplete_ready); $('.polgroup-autocomplete').each(sync_polgroups).autocomplete(PORTAL_URL+'/listPolgroups', { }).result(autocomplete_ready); $('.topic-autocomplete').each(sync_topics).autocomplete(PORTAL_URL+'/listTopics', { - 'matchContains': true, 'scroll': true, 'max': 30}).result(autocomplete_ready); + 'cacheLength': 0, 'matchContains': true, 'scroll': true, 'max': 30}).result(autocomplete_ready); }); })(jQuery);