From 02390e3a1f54894ddef678db42eae6bc6eebaa2b Mon Sep 17 00:00:00 2001 From: Corban-Lee Date: Tue, 23 Jul 2024 11:02:04 +0100 Subject: [PATCH] abstracted refresh buttons --- apps/static/js/home/content.js | 2 +- apps/static/js/home/filters.js | 2 +- apps/templates/home/index.html | 9 --------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/apps/static/js/home/content.js b/apps/static/js/home/content.js index fe6abde..0ada406 100644 --- a/apps/static/js/home/content.js +++ b/apps/static/js/home/content.js @@ -165,7 +165,7 @@ function clearExistingContentRows() { contentTable.clear().draw(false); } -$("#refreshContentBtn").on("click", async function() { +$("#contentTabPane").on("click", ".table-refresh-btn", async function() { loadContent(getCurrentlyActiveServer().guild_id); }); diff --git a/apps/static/js/home/filters.js b/apps/static/js/home/filters.js index 1415aec..a12b187 100644 --- a/apps/static/js/home/filters.js +++ b/apps/static/js/home/filters.js @@ -168,7 +168,7 @@ function clearExistingFilterRows() { filtersTable.clear().draw(false) } -$("#refreshFilterBtn").on("click", async function() { +$("#filtersTabPane").on("click", ".table-refresh-btn", async function() { loadFilters(getCurrentlyActiveServer().guild_id); }); diff --git a/apps/templates/home/index.html b/apps/templates/home/index.html index 2332916..eb59e60 100644 --- a/apps/templates/home/index.html +++ b/apps/templates/home/index.html @@ -71,9 +71,6 @@
- @@ -82,9 +79,6 @@
- @@ -93,9 +87,6 @@
-