aboutsummaryrefslogtreecommitdiffstats
path: root/view/js
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-05-03 17:37:16 -0700
committerzotlabs <mike@macgirvin.com>2018-05-03 17:37:16 -0700
commit61a8a161397ef6af6e1e9f2b4efa62a925e87879 (patch)
tree8a5852a301e1645a01a606b6b78049357166f32b /view/js
parenteff72aeb47e68986736043eac584e4fd4aa75d65 (diff)
downloadvolse-hubzilla-61a8a161397ef6af6e1e9f2b4efa62a925e87879.tar.gz
volse-hubzilla-61a8a161397ef6af6e1e9f2b4efa62a925e87879.tar.bz2
volse-hubzilla-61a8a161397ef6af6e1e9f2b4efa62a925e87879.zip
add changes from ae35ac0cec3f6bf337 to contact_autocomplete so channel source completion will work correctly
Diffstat (limited to 'view/js')
-rw-r--r--view/js/autocomplete.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js
index b7ebe3293..97bb62fef 100644
--- a/view/js/autocomplete.js
+++ b/view/js/autocomplete.js
@@ -321,13 +321,14 @@ function string2bb(element) {
var editor = new Textarea(this);
var textcomplete = new Textcomplete(editor);
textcomplete.register([contacts], {className:'acpopup', zIndex:1020});
+ textcomplete.on('select', function() { aItem = textcomplete.dropdown.getActiveItem(); });
});
if(autosubmit)
- this.on('select', function(e,value,strategy) { submit_form(this); });
+ this.on('select', function() { submit_form(this); });
if(typeof onselect !== 'undefined')
- this.on('select', function(e, value, strategy) { onselect(value); });
+ this.on('select', function() { onselect(aItem.searchResult.data); });
};
})( jQuery );