[Jifty-commit] jifty branch, autocomplete-refactor, updated. 5891c20e5ac799b4985b54323a1a564994972b66
Jifty commits
jifty-commit at lists.jifty.org
Thu Mar 25 12:36:53 EDT 2010
The branch, autocomplete-refactor has been updated
via 5891c20e5ac799b4985b54323a1a564994972b66 (commit)
via 13fdb8db61c84263343c137407140dd5d9cc0ee4 (commit)
from d07e5cc75631160c1a7c274620a3de47c92ee8be (commit)
Summary of changes:
share/web/static/js/jifty.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit 13fdb8db61c84263343c137407140dd5d9cc0ee4
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Thu Mar 25 12:36:47 2010 -0400
delay only 100ms (instead of 400ms) before hitting the server
diff --git a/share/web/static/js/jifty.js b/share/web/static/js/jifty.js
index 931bae2..12b200d 100644
--- a/share/web/static/js/jifty.js
+++ b/share/web/static/js/jifty.js
@@ -1731,6 +1731,7 @@ Jifty.addAutocompleter = function (id) {
jQuery(selector).autocomplete('/__jifty/autocomplete.xml', {
cacheLength: 0, // disable caching
+ delay: 100,
httpMethod: 'POST',
contentType: 'text/x-json',
mungeData: function (data, term) {
commit 5891c20e5ac799b4985b54323a1a564994972b66
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Thu Mar 25 12:37:01 2010 -0400
Got label/value backwards
diff --git a/share/web/static/js/jifty.js b/share/web/static/js/jifty.js
index 12b200d..4636f25 100644
--- a/share/web/static/js/jifty.js
+++ b/share/web/static/js/jifty.js
@@ -1765,8 +1765,8 @@ Jifty.addAutocompleter = function (id) {
}
results.push({
- data: [value],
- result: label
+ data: [label],
+ result: value
});
});
return results;
-----------------------------------------------------------------------
More information about the Jifty-commit
mailing list