switch(window.autocompleteType) {
case 'msg-header':
- var a = $("#recip").autocomplete({
- serviceUrl: baseurl + '/acl',
- minChars: 2,
- width: 350,
- onSelect: function(value,data) {
- $("#recip-complete").val(data);
- }
+ $("#recip").name_autocomplete(baseurl + '/acl', '', false, function(data) {
+ $("#recip-complete").val(data.id);
});
break;
case 'contacts-head':
- var a = $("#contacts-search").autocomplete({
- serviceUrl: baseurl + '/acl',
- minChars: 2,
- width: 350,
+ $("#contacts-search").contact_autocomplete(baseurl + '/acl', 'a', true);
+
+
+ $("#contacts-search").keyup(function(event){
+ if(event.keyCode == 13){
+ $("#contacts-search").click();
+ }
+ });
+ $(".autocomplete-w1 .selected").keyup(function(event){
+ if(event.keyCode == 13){
+ $("#contacts-search").click();
+ }
});
- a.setOptions({ params: { type: 'a' }});
break;
case 'display-head':
- $(".comment-wwedit-wrapper textarea").contact_autocomplete(baseurl+"/acl");
+ $(".comment-wwedit-wrapper textarea").editor_autocomplete(baseurl+"/acl");
break;
default:
break;
if(plaintext == 'none') {
// $("#profile-jot-text-loading").hide();
$("#profile-jot-text").css({ 'height': 200, 'color': '#000' });
- $("#profile-jot-text").contact_autocomplete(baseurl+"/acl");
+ $("#profile-jot-text").editor_autocomplete(baseurl+"/acl");
editor = true;
/* $("a#jot-perms-icon").colorbox({
'inline' : true,