X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=view%2Fjs%2Fautocomplete.js;h=a3464e459714acc75ecfe9d7e4631db5227d553d;hb=16c2705016554289b8e2644d8f2093fb0f16178a;hp=bb3577fb9b2ddd66f8159611fea3a8d0c7a957f9;hpb=f8c0f24e34e124ab782d5dcf3d2d658d70e19e5c;p=friendica.git diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index bb3577fb9b..a3464e4597 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -1,6 +1,6 @@ // @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt Expat /** - * @brief Friendica people autocomplete + * Friendica people autocomplete * * require jQuery, jquery.textcomplete * @@ -222,7 +222,7 @@ function string2bb(element) { match: /(^|\s)(\#)([^ \n]{2,})$/, index: 3, search: function(term, callback) { - $.getJSON(baseurl + '/hashtag/' + '?f=&t=' + term) + $.getJSON(baseurl + '/hashtag/' + '?t=' + term) .done(function(data) { callback($.map(data, function(entry) { // .toLowerCase() enables case-insensitive search @@ -275,7 +275,7 @@ function string2bb(element) { tags = { match: /(^|\s)(\#)([^ \n]{2,})$/, index: 3, - search: function(term, callback) { $.getJSON(baseurl + '/hashtag/' + '?f=&t=' + term).done(function(data) { callback($.map(data, function(entry) { return entry.text.indexOf(term) === 0 ? entry : null; })); }); }, + search: function(term, callback) { $.getJSON(baseurl + '/hashtag/' + '?t=' + term).done(function(data) { callback($.map(data, function(entry) { return entry.text.indexOf(term) === 0 ? entry : null; })); }); }, replace: function(item) { return "$1$2" + item.text; }, template: tag_format };