File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
pydis_site/static/js/resources Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ function deserializeURLParams() {
69
69
let paramFilterArray = paramFilterContent . split ( "," ) ;
70
70
71
71
// Update the corresponding filter UI, so it reflects the internal state.
72
+ let filterAdded = false ;
72
73
$ ( paramFilterArray ) . each ( function ( _ , filter ) {
73
74
// Make sure the filter is valid before we do anything.
74
75
if ( String ( filter ) === "rickroll" && filterType === "type" ) {
@@ -83,11 +84,17 @@ function deserializeURLParams() {
83
84
filterTag . show ( ) ;
84
85
resourceTags . addClass ( "active" ) ;
85
86
activeFilters [ filterType ] . push ( filter ) ;
87
+ filterAdded = true ;
86
88
}
87
89
} ) ;
88
90
89
91
// Ditch all the params from the URL, and recalculate the URL params
90
92
updateURL ( ) ;
93
+
94
+ // If we've added a filter, hide the no filters tag.
95
+ if ( filterAdded ) {
96
+ $ ( ".no-tags-selected.tag" ) . hide ( ) ;
97
+ }
91
98
}
92
99
} ) ;
93
100
}
You can’t perform that action at this time.
0 commit comments