]> git.mxchange.org Git - friendica.git/blobdiff - view/theme/frio/templates/contacts-head.tpl
Merge pull request #5823 from annando/ap-attach
[friendica.git] / view / theme / frio / templates / contacts-head.tpl
index 60f8d5ec6d6f20831db2c1b64b17c377eaecf886..d51d76b44a2aa8e6d11c6b27104b6041eaf40586 100644 (file)
@@ -1,23 +1,2 @@
 
-<script>
-$(document).ready(function() {
-       // Add contact_filter autocompletion to the search field
-       $("#contacts-search").contact_filter(baseurl + '/acl', 'r', true);
-
-       // Hide the viewcontact_wrapper if there is an input in the search field
-       // We are doing this to let the the contact_filter replace the original 
-       // shown contacts
-       $("#contacts-search").keyup(function(){
-               var elText = $(this).val();
-               if(elText.length !== 0) {
-                       $("#viewcontact_wrapper").hide();
-                       $("ul.textcomplete-dropdown").addClass("show media-list");
-               } else {
-                       $("#viewcontact_wrapper").show();
-                       $("ul.textcomplete-dropdown").removeClass("show");
-               }
-       });
-
-});
-</script>
-
+<script type="text/javascript" src="view/theme/frio/js/mod_contacts.js"></script>