abstracted refresh buttons
This commit is contained in:
parent
adb14ddb7e
commit
02390e3a1f
@ -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);
|
||||
});
|
||||
|
||||
|
@ -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);
|
||||
});
|
||||
|
||||
|
@ -71,9 +71,6 @@
|
||||
</ul>
|
||||
<div class="tab-pane-buttons">
|
||||
<div class="tab-pane-buttons-item" data-tab="subscriptionsTab">
|
||||
<button type="button" id="refreshSubscriptionBtn" class="btn btn-outline-secondary rounded-1 me-3">
|
||||
<i class="bi bi-arrow-clockwise"></i>
|
||||
</button>
|
||||
<button type="button" id="addSubscriptionBtn" class="btn btn-primary rounded-1 me-3">
|
||||
<i class="bi bi-plus-lg"></i>
|
||||
</button>
|
||||
@ -82,9 +79,6 @@
|
||||
</button>
|
||||
</div>
|
||||
<div class="tab-pane-buttons-item" data-tab="filtersTab">
|
||||
<button type="button" id="refreshFilterBtn" class="btn btn-outline-secondary rounded-1 me-3">
|
||||
<i class="bi bi-arrow-clockwise"></i>
|
||||
</button>
|
||||
<button type="button" id="addFilterBtn" class="btn btn-primary rounded-1 me-3">
|
||||
<i class="bi bi-plus-lg"></i>
|
||||
</button>
|
||||
@ -93,9 +87,6 @@
|
||||
</button>
|
||||
</div>
|
||||
<div class="tab-pane-buttons-item" data-tab="contentTab">
|
||||
<button type="button" id="refreshContentBtn" class="btn btn-outline-secondary rounded-1 me-3">
|
||||
<i class="bi bi-arrow-clockwise"></i>
|
||||
</button>
|
||||
<button type="button" id="deleteSelectedContentBtn" class="btn btn-danger rounded-1 ms-0">
|
||||
<i class="bi bi-trash3"></i>
|
||||
</button>
|
||||
|
Loading…
x
Reference in New Issue
Block a user