diff options
author | zotlabs <mike@macgirvin.com> | 2017-09-24 19:50:55 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-09-24 19:50:55 -0700 |
commit | b1954070283ecd9aacb59ed26e684112f9903f49 (patch) | |
tree | d79456ec287e5627975fa0bba02fb41b148c5030 /view/js/autocomplete.js | |
parent | 3648f9952cdbde96239d833d62b6c0356aff778d (diff) | |
parent | 1650d79862c0e89887ede279a19c8df07fe0d927 (diff) | |
download | volse-hubzilla-b1954070283ecd9aacb59ed26e684112f9903f49.tar.gz volse-hubzilla-b1954070283ecd9aacb59ed26e684112f9903f49.tar.bz2 volse-hubzilla-b1954070283ecd9aacb59ed26e684112f9903f49.zip |
Merge branch 'tagging'
Diffstat (limited to 'view/js/autocomplete.js')
-rw-r--r-- | view/js/autocomplete.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index 313e501e2..1a507a28c 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -192,6 +192,16 @@ function string2bb(element) { template: contact_format }; + // Autocomplete forums + forums = { + match: /(^|\s)(\!)([^ \n]+)$/, + index: 3, + search: function(term, callback) { contact_search(term, callback, backend_url, 'f', extra_channels, spinelement=false); }, + replace: editor_replace, + template: contact_format + }; + + smilies = { match: /(^|\s)(:[a-z_:]{2,})$/, index: 2, @@ -201,7 +211,7 @@ function string2bb(element) { template: smiley_format }; this.attr('autocomplete','off'); - this.textcomplete([contacts,smilies], {className:'acpopup', zIndex:1020}); + this.textcomplete([contacts,forums,smilies], {className:'acpopup', zIndex:1020}); }; })( jQuery ); |