add changes from ae35ac0cec to contact_autocomplete so channel source completion will work correctly

This commit is contained in:
zotlabs 2018-05-03 17:37:16 -07:00
parent eff72aeb47
commit 61a8a16139

View File

@ -321,13 +321,14 @@ function string2bb(element) {
var editor = new Textarea(this);
var textcomplete = new Textcomplete(editor);
textcomplete.register([contacts], {className:'acpopup', zIndex:1020});
textcomplete.on('select', function() { aItem = textcomplete.dropdown.getActiveItem(); });
});
if(autosubmit)
this.on('select', function(e,value,strategy) { submit_form(this); });
this.on('select', function() { submit_form(this); });
if(typeof onselect !== 'undefined')
this.on('select', function(e, value, strategy) { onselect(value); });
this.on('select', function() { onselect(aItem.searchResult.data); });
};
})( jQuery );