diff --git a/apps/home/static/home/js/tables.js b/apps/home/static/home/js/tables.js index 3b5dcbe..da34635 100644 --- a/apps/home/static/home/js/tables.js +++ b/apps/home/static/home/js/tables.js @@ -72,9 +72,11 @@ function setTableOrdering(tableId, value) { _tableOrdering[tableId] = value; } +// Clear all kinds of sorting and filtering when changing servers $(document).on("selectedServerChange", function() { _tableFilters = {}; _tableOrdering = {}; + $(".table-search-input").val(""); }); diff --git a/apps/home/templates/home/tabs/filters.html b/apps/home/templates/home/tabs/filters.html index b8611f0..1670ab4 100644 --- a/apps/home/templates/home/tabs/filters.html +++ b/apps/home/templates/home/tabs/filters.html @@ -4,7 +4,7 @@ - +
diff --git a/apps/home/templates/home/tabs/subs.html b/apps/home/templates/home/tabs/subs.html index c18673f..cb83d8b 100644 --- a/apps/home/templates/home/tabs/subs.html +++ b/apps/home/templates/home/tabs/subs.html @@ -4,7 +4,7 @@ - +