aboutsummaryrefslogblamecommitdiffstats
path: root/view/js/mod_connections.js
blob: 8a8f2fee672f7aeaafe57582dbe4c63f4c389f1c (plain) (tree)
1
2
3
4
5
6
7
8
9



                                                 
                                        
           
                                                                 
    









                                                             
 
$(document).ready(function() { 
	var a; 
	a = $("#contacts-search").autocomplete({ 
		serviceUrl: baseurl + '/acl',
		minChars: 2,
		width: 250,
		id: 'contact-search-ac',
	});
	a.setOptions({ autoSubmit: true, params: { type: 'a' }});

}); 

$("#contacts-search").keyup(function(event){
		if(event.keyCode == 13){
			$("#contacts-search-submit").click();
		}
});
$(".autocomplete-w1 .selected").keyup(function(event){
		if(event.keyCode == 13){
			$("#contacts-search-submit").click();
		}
});