]> git.mxchange.org Git - friendica.git/blobdiff - view/templates/poke_head.tpl
Merge pull request #7963 from annando/issue-7659-a
[friendica.git] / view / templates / poke_head.tpl
index 6e30eb7fee35a7e488733db2967d880d8c0de38f..cf9ed53351d7d321389d665d0315e8af9cb38f16 100644 (file)
@@ -1,18 +1,8 @@
-<script src="{{$baseurl}}/library/jquery_ac/friendica.complete.js" ></script>
 
-<script>$(document).ready(function() {
-       var a;
-       a = $("#poke-recip").autocomplete({
-               serviceUrl: '{{$base}}/acl',
-               minChars: 2,
-               width: 350,
-               onSelect: function(value,data) {
-                       $("#poke-recip-complete").val(data);
-               }
+<script>
+$(document).ready(function() {
+       $("#poke-recip").name_autocomplete(baseurl + '/search/acl', 'a', true, function(data) {
+               $("#poke-recip-complete").val(data.id);
        });
-       a.setOptions({ params: { type: 'a' }});
-
-
 });
-
-</script>
\ No newline at end of file
+</script>