# HG changeset patch # User Brian Neal # Date 1298239926 0 # Node ID 5453aedf95fda8787f0e6af1f6ba7e4a8b2e092c # Parent d8b634e67043617ee4b49561209258ee3b62de4d Adjusting the auto-complete to only require 1 character minimum before querying, and return 15 results instead of 10. diff -r d8b634e67043 -r 5453aedf95fd gpp/core/widgets.py --- a/gpp/core/widgets.py Sun Feb 20 22:09:56 2011 +0000 +++ b/gpp/core/widgets.py Sun Feb 20 22:12:06 2011 +0000 @@ -20,7 +20,7 @@ var cacheSize = 0; $("#id_%s").autocomplete({ delay: 400, - minLength: 2, + minLength: 1, source: function(request, response) { if (cache[request.term]) { response(cache[request.term]); @@ -31,11 +31,11 @@ type: "GET", data: { q: request.term, - limit: 10 + limit: 15 }, dataType: "json", success: function(data, textStatus) { - if (cacheSize >= 16) { + if (cacheSize >= 32) { cache = {}; cacheSize = 0; }