Lines Matching refs:tags
44 const $filterContainer = jQuery('#plugin__tagging-tags');
50 * @param {*} tags
54 function buildFilter(tags, filters) {
58 // when tag search has no results, build the filter dropdown anyway but from tags in query
59 if (Object.keys(tags).length === 0 && filters.length > 0) {
61 tags[key] = 0;
65 for (const tag in tags) {
71 ${tag} (${tags[tag]})
87 * Collects tags from results list
92 const tags = [];
97 tags.push(tag);
101 return tags.sort().reduce(function (allTags, tag) {
122 * Returns an array of all tags found in search form input
156 * Restore tags in search links
161 const tags = getFiltersFromQuery();
162 if (tags.length === 0) {
169 $link[0]['href'] = $link[0]['href'].replace(qParam, qParam + encodeURIComponent(' #' + tags.join(' #')));
186 // tags in other search filters