diff options
author | Mario <mario@mariovavti.com> | 2020-12-23 08:19:11 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-12-23 08:19:11 +0000 |
commit | 9fa3dee522b2dc967e23d3543750a877a0c60c15 (patch) | |
tree | 4479a1ea823f1ad7cbf0acb2ba745db10e2682e7 /view/js/autocomplete.js | |
parent | 7ee2192c29ea3da08fe2c6ba361388eb6e3a6877 (diff) | |
download | volse-hubzilla-9fa3dee522b2dc967e23d3543750a877a0c60c15.tar.gz volse-hubzilla-9fa3dee522b2dc967e23d3543750a877a0c60c15.tar.bz2 volse-hubzilla-9fa3dee522b2dc967e23d3543750a877a0c60c15.zip |
remove deprecated forum autocomplete code
Diffstat (limited to 'view/js/autocomplete.js')
-rw-r--r-- | view/js/autocomplete.js | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index dc757d5c8..92db42f6d 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -171,18 +171,6 @@ function string2bb(element) { template: contact_format }; -/* - // Autocomplete forums - forums = { - match: /(^|\s)(\!\!*)([^ \n]{2,})$/, - 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,})$/, @@ -194,7 +182,6 @@ function string2bb(element) { template: tag_format }; - smilies = { match: /(^|\s)(:[a-z0-9_:]{2,})$/, index: 2, @@ -215,7 +202,7 @@ function string2bb(element) { maxCount: 100 } }); - textcomplete.register([contacts,forums,smilies,tags]); + textcomplete.register([contacts,smilies,tags]); }); }; })( jQuery ); @@ -239,16 +226,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,})$/, @@ -272,7 +249,7 @@ function string2bb(element) { maxCount: 100 } }); - textcomplete.register([contacts,forums,tags]); + textcomplete.register([contacts,tags]); }); textcomplete.on('selected', function() { this.editor.el.form.submit(); }); |