Lines Matching refs:tag
3 * Add tag search parameter to all links in the advanced search tools
58 // when tag search has no results, build the filter dropdown anyway but from tags in query
65 for (const tag in tags) {
66 let checked = filters.includes(tag) ? 'checked="checked"' : '';
69 <input name="tagging[]" type="checkbox" value="${tag}" id="__tagging-${i}" ${checked}>
70 <label for="__tagging-${i}" title="${tag}">
71 ${tag} (${tags[tag]})
96 const tag = text.replace('#', '');
97 tags.push(tag);
101 return tags.sort().reduce(function (allTags, tag) {
102 if (tag in allTags) {
103 allTags[tag]++;
106 allTags[tag] = 1;
132 return filters.map(function (tag) {
133 return tag.replace('#', '');
138 * Called when a tag filter is updated. Manipulates query by adding or removing the selected tag.
140 * @param {string} tag
142 function toggleTag(tag) {
143 tag = '#' + tag;
146 const isFilter = q.indexOf(tag) > -1;
149 $q.val(q.replace(tag, ''));
151 $q.val(q.trim() + ' ' + tag);
173 // tag filter