summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@0d.be>2011-12-09 15:59:42 (GMT)
committerFrédéric Péters <fpeters@0d.be>2011-12-09 15:59:42 (GMT)
commit7b2cd85b3c391071d66b14b17e9acde1080a355f (patch)
treef0c27f63a7d9c26982619f5640d56d0e1437c323
parent29337beaa34c282d4783f5a203bcce53b3153072 (diff)
downloadtabellio.searchform-7b2cd85b3c391071d66b14b17e9acde1080a355f.zip
tabellio.searchform-7b2cd85b3c391071d66b14b17e9acde1080a355f.tar.gz
tabellio.searchform-7b2cd85b3c391071d66b14b17e9acde1080a355f.tar.bz2
do not keep a cache of autocomplete values
-rw-r--r--tabellio/searchform/js_macros.pt4
1 files 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);
</script>