Frio: fix contact filtering on contacts page

This commit is contained in:
rabuzarus 2018-06-13 23:04:07 +02:00
parent a1455489bf
commit 0db6002e3c
2 changed files with 5 additions and 0 deletions

View file

@ -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']),
];
}

View file

@ -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();
});