diff options
author | zotlabs <mike@macgirvin.com> | 2018-05-03 17:18:36 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-05-03 17:18:36 -0700 |
commit | eff72aeb47e68986736043eac584e4fd4aa75d65 (patch) | |
tree | 5b46609756fff16d3d6985f6996fab262288dad3 /view | |
parent | 75c8f656c9cb6d4b664cccd2e72e23499547d088 (diff) | |
parent | ae35ac0cec3f6bf3373ff901dabe20f35ec1933a (diff) | |
download | volse-hubzilla-eff72aeb47e68986736043eac584e4fd4aa75d65.tar.gz volse-hubzilla-eff72aeb47e68986736043eac584e4fd4aa75d65.tar.bz2 volse-hubzilla-eff72aeb47e68986736043eac584e4fd4aa75d65.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'view')
-rw-r--r-- | view/js/autocomplete.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index 60552588e..b7ebe3293 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -353,19 +353,22 @@ function string2bb(element) { this.attr('autocomplete','off'); + var aItem; var Textarea = Textcomplete.editors.Textarea; $(this).each(function() { var editor = new Textarea(this); var textcomplete = new Textcomplete(editor); textcomplete.register([names], {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 ); |