aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/mod_sources.js
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-01-07 14:39:09 -0800
committerfriendica <info@friendica.com>2015-01-07 14:39:09 -0800
commit0657195125675700eeb9bcd1bc92f4299cac0304 (patch)
tree2e6d2df8fd42b289b947a16f0c5f0009a2c98043 /view/js/mod_sources.js
parenta1e5a661fa8f87793cab0fe9c34f507dafb65d99 (diff)
parent087d6744fcd0c77cf3415b4ce6eaf50cdb63b4ef (diff)
downloadvolse-hubzilla-0657195125675700eeb9bcd1bc92f4299cac0304.tar.gz
volse-hubzilla-0657195125675700eeb9bcd1bc92f4299cac0304.tar.bz2
volse-hubzilla-0657195125675700eeb9bcd1bc92f4299cac0304.zip
Merge branch 'master' into trinidad
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..1bbf89765 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', false, function(data) {
+ $("#id_abook").val(data.id);
+ });
+ });
});