]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #5213 from fabrixxm/smallfix
authorHypolite Petovan <mrpetovan@gmail.com>
Thu, 14 Jun 2018 12:43:57 +0000 (08:43 -0400)
committerGitHub <noreply@github.com>
Thu, 14 Jun 2018 12:43:57 +0000 (08:43 -0400)
Create config keys if they not exists on set (bis)

mod/contacts.php
view/theme/frio/js/theme.js

index 9ad7d09b57e40db3f41fa0022fc76a618fdd36ab..59b96d87a98c82ffbf311cc6df53661ff91ae98c 100644 (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']),
        ];
 }
 
index 859df01613a7deec6d41f2210da6d072495af0a0..26c69ba37c471696549163232ffe494e42c9ea14 100644 (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();
                });