Merge pull request #5210 from rabuzarus/20180613_-_frio_fix_autocompletion
Frio: fix contact filtering on contacts page
This commit is contained in:
commit
9500c1b663
2 changed files with 5 additions and 0 deletions
|
@ -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']),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue