aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_sources.js
diff options
context:
space:
mode:
authorStefan Parviainen <saparvia@caterva.eu>2015-01-07 21:01:36 +0100
committerStefan Parviainen <saparvia@caterva.eu>2015-01-07 21:01:36 +0100
commitfcc9131fb9b1a0c115823c42a0828ce25670b215 (patch)
tree7a6a789cc118787f3f953cb885f1c11864142b76 /view/js/mod_sources.js
parentb098d5d901d529b48461811c414c6043c991e92a (diff)
downloadvolse-hubzilla-fcc9131fb9b1a0c115823c42a0828ce25670b215.tar.gz
volse-hubzilla-fcc9131fb9b1a0c115823c42a0828ce25670b215.tar.bz2
volse-hubzilla-fcc9131fb9b1a0c115823c42a0828ce25670b215.zip
Make mod_sources autocomplete use textcomplete
Diffstat (limited to 'view/js/mod_sources.js')
-rw-r--r--view/js/mod_sources.js18
1 files changed, 5 insertions, 13 deletions
diff --git a/view/js/mod_sources.js b/view/js/mod_sources.js
index 49880b38f..add8ac15e 100644
--- a/view/js/mod_sources.js
+++ b/view/js/mod_sources.js
@@ -1,15 +1,7 @@
$(document).ready(function() {
- var a;
- a = $("#id_name").autocomplete({
- serviceUrl: baseurl + '/acl',
- minChars: 2,
- width: 250,
- id: 'id-name-ac',
- onSelect: function(value,data) {
- $("#id_abook").val(data);
- }
- });
-
- a.setOptions({ params: { type: 'a' }});
-
+ $(document).ready(function() {
+ $("#id_name").contact_autocomplete(baseurl + '/acl', 'a', function(data) {
+ $("#id_abook").val(data.id);
+ });
+ });
});