From 0db6002e3c08575672c62f3557312d02ed682204 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Wed, 13 Jun 2018 23:04:07 +0200 Subject: [PATCH] Frio: fix contact filtering on contacts page --- mod/contacts.php | 1 + view/theme/frio/js/theme.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/mod/contacts.php b/mod/contacts.php index 9ad7d09b5..59b96d87a 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 859df0161..26c69ba37 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(); });