1
0
Fork 1

URL hash starts tag search

remotes/1715175271555336803/main
gravel 2 years ago
parent cad8973095
commit 008e13a039
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -97,6 +97,12 @@ function reactToURLParameters() {
return; return;
} }
if (!hash.includes("+")) {
useSearchTerm(`#${decodeURIComponent(hash)}`, true);
toggleSearchBarVisibility();
return;
}
const communityIDPrefix = hash; const communityIDPrefix = hash;
const row = dom.community_row(communityIDPrefix, true); const row = dom.community_row(communityIDPrefix, true);
if (row == null || !(row instanceof HTMLTableRowElement)) { if (row == null || !(row instanceof HTMLTableRowElement)) {
@ -709,8 +715,6 @@ function useSearchTerm(rawTerm, fillSearchBarWithTerm = false) {
if (fillSearchBarWithTerm) { if (fillSearchBarWithTerm) {
searchBar.value = rawTerm; searchBar.value = rawTerm;
} }
sortTable();
} }
function replaceRowsWith(rows) { function replaceRowsWith(rows) {