diff --git a/mod/contacts.php b/mod/contacts.php index 9ad7d09b57..59b96d87a9 100644 --- a/mod/contacts.php +++ b/mod/contacts.php @@ -969,6 +969,7 @@ function _contact_detail_for_template($rr) 'itemurl' => (($rr['addr'] != "") ? $rr['addr'] : $rr['url']), 'url' => $url, 'network' => ContactSelector::networkToName($rr['network'], $rr['url']), + 'nick' => htmlentities($rr['nick']), ]; } diff --git a/view/theme/frio/js/theme.js b/view/theme/frio/js/theme.js index 859df01613..26c69ba37c 100644 --- a/view/theme/frio/js/theme.js +++ b/view/theme/frio/js/theme.js @@ -550,6 +550,10 @@ function filter_replace(item) { this.attr('autocomplete','off'); var a = this.textcomplete([contacts], {className:'accontacts', appendTo: '#contact-list'}); + if(autosubmit) { + a.on('textComplete:select', function(e,value,strategy) {submit_form(this);}); + } + a.on('textComplete:select', function(e, value, strategy) { $(".dropdown-menu.textcomplete-dropdown.media-list").show(); });