Hide "I liked" "I've read" etc from advanced search for anonymous users


(Evgeny) #1

I think it does not make sense to show unauthorized users, those items that he does not need.

In the search tags, the lack of results is probably missing in the language files.

file: select2.js ?

$.fn.select2.locales['en'] = {
         formatMatches: function (matches) { if (matches === 1) { return "One result is available, press enter to select it."; } return matches + " results are available, use up and down arrow keys to navigate."; },
         formatNoMatches: function () { return "No matches found"; },
         formatAjaxError: function (jqXHR, textStatus, errorThrown) { return "Loading failed"; },
         formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " or more character" + (n == 1 ? "" : "s"); },
         formatInputTooLong: function (input, max) { var n = input.length - max; return "Please delete " + n + " character" + (n == 1 ? "" : "s"); },
         formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); },
         formatLoadMore: function (pageNumber) { return "Loading more results–≤–ā¬¶"; },
         formatSearching: function () { return "Searching–≤–ā¬¶"; }
    };

(Sam Saffron) #2

Agree, editing title to better reflect the request here. #pr-welcome


(Alan Tan) #3

Merged in

Thank you @xrav3nz!


#4

Thanks for guiding me through my first PR. Really enjoyed hacking on Discourse!


(Erlend Sogge Heggen) #5

This topic was automatically closed after 5 days. New replies are no longer allowed.