diff options
author | RedMatrix <info@friendica.com> | 2015-01-08 09:38:45 +1100 |
---|---|---|
committer | RedMatrix <info@friendica.com> | 2015-01-08 09:38:45 +1100 |
commit | 8771dee9cf90b9c8f76c1856ea7e5107aab5840e (patch) | |
tree | 0ab8af1ffb5a92962b2918e274cae26046897d11 /view/js/mod_poke.js | |
parent | a373b9f1d4d0ee6781927c3fcf05e0e301a80b6e (diff) | |
parent | 7176eb88452b3c74652de09e44de41943051391c (diff) | |
download | volse-hubzilla-8771dee9cf90b9c8f76c1856ea7e5107aab5840e.tar.gz volse-hubzilla-8771dee9cf90b9c8f76c1856ea7e5107aab5840e.tar.bz2 volse-hubzilla-8771dee9cf90b9c8f76c1856ea7e5107aab5840e.zip |
Merge pull request #829 from pafcu/oneautocompleter
Steps towards a single autocompleter
Diffstat (limited to 'view/js/mod_poke.js')
-rw-r--r-- | view/js/mod_poke.js | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/view/js/mod_poke.js b/view/js/mod_poke.js index 78972888f..58e50588f 100644 --- a/view/js/mod_poke.js +++ b/view/js/mod_poke.js @@ -1,14 +1,5 @@ $(document).ready(function() { - var a; - a = $("#poke-recip").autocomplete({ - serviceUrl: baseurl + '/acl', - minChars: 2, - width: 250, - id: 'poke-recip-ac', - onSelect: function(value,data) { - $("#poke-recip-complete").val(data); - } + $("#poke-recip").contact_autocomplete(baseurl + '/acl', 'a', false, function(data) { + $("#poke-recip-complete").val(data.id); }); - a.setOptions({ params: { type: 'a' }}); - }); |