diff options
-rw-r--r-- | view/js/mod_sources.js | 18 |
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); + }); + }); }); |