diff options
author | Mario <mario@mariovavti.com> | 2023-03-03 08:49:18 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-03-03 08:49:18 +0000 |
commit | ec3ba87f3a6cb9cda5f094bb1e62ed6b746f087f (patch) | |
tree | 2a5c739bf8c06297c64776a0f83374f17b288c56 /view/js/autocomplete.js | |
parent | da034045cc1bba74287b7c3e83f4a94ff5359150 (diff) | |
download | volse-hubzilla-ec3ba87f3a6cb9cda5f094bb1e62ed6b746f087f.tar.gz volse-hubzilla-ec3ba87f3a6cb9cda5f094bb1e62ed6b746f087f.tar.bz2 volse-hubzilla-ec3ba87f3a6cb9cda5f094bb1e62ed6b746f087f.zip |
Revert "some work on bringing bang tags back for forums"
This reverts commit da034045cc1bba74287b7c3e83f4a94ff5359150.
Diffstat (limited to 'view/js/autocomplete.js')
-rw-r--r-- | view/js/autocomplete.js | 25 |
1 files changed, 2 insertions, 23 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index 09f6a71c4..8edd8dafa 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -178,16 +178,6 @@ function string2bb(element) { template: contact_format }; - // Autocomplete forums - forums = { - match: /(^|\s)(\!\!*)([^ \n]{3,})$/, - index: 3, - cache: true, - search: function(term, callback) { contact_search(term, callback, backend_url, 'f', extra_channels, spinelement=false); }, - replace: editor_replace, - template: contact_format - }; - // Autocomplete hashtags tags = { match: /(^|\s)(\#)([^ \n]{2,})$/, @@ -220,7 +210,7 @@ function string2bb(element) { } }); // it seems important that contacts are before channels here. Otherwise we run into regex issues. - textcomplete.register([contacts, channels, smilies, forums, tags]); + textcomplete.register([contacts,channels,smilies,tags]); }); }; })( jQuery ); @@ -244,17 +234,6 @@ function string2bb(element) { template: contact_format, }; - // Autocomplete forums - forums = { - match: /(^\!)([^\n]{2,})$/, - index: 2, - cache: true, - search: function(term, callback) { contact_search(term, callback, backend_url, 'f', [], spinelement='#nav-search-spinner'); }, - replace: basic_replace, - template: contact_format - }; - - // Autocomplete hashtags tags = { match: /(^\#)([^ \n]{2,})$/, @@ -278,7 +257,7 @@ function string2bb(element) { maxCount: 100 } }); - textcomplete.register([contacts, forums, tags]); + textcomplete.register([contacts,tags]); }); textcomplete.on('selected', function() { this.editor.el.form.submit(); }); |