share & delete btn disabled
Some checks failed
Build and Push Docker Image / build (push) Failing after 6m59s
Some checks failed
Build and Push Docker Image / build (push) Failing after 6m59s
This commit is contained in:
parent
5cb200c597
commit
9cbb4fe586
@ -268,9 +268,10 @@ function bindTableSearch(tableId) {
|
||||
// region Button Controls
|
||||
|
||||
function bindRefreshButton(tableId) {
|
||||
const $tableFilters = $(tableId).closest('.js-tableBody').siblings('.js-tableFilters');
|
||||
$tableFilters.on("click", ".table-refresh-btn", function() {
|
||||
$tableFilters.find(".table-del-btn").prop("disabled", true);
|
||||
$controls = getTableFiltersComponent(tableId);
|
||||
$controls.on("click", ".js-tableRefreshBtn", function() {
|
||||
$controls.find(".js-tableDeleteBtn").prop("disabled", true);
|
||||
$controls.find(".js-tableShareBtn").prop("disabled", true);
|
||||
$(tableId).trigger("doDataLoad");
|
||||
})
|
||||
}
|
||||
@ -313,7 +314,10 @@ function determineSelectAllState(tableId) {
|
||||
$checkbox.prop("checked", doCheck);
|
||||
$checkbox.prop("indeterminate", doIndeterminate);
|
||||
|
||||
$(tableId).closest(".js-tableBody").siblings(".js-tableFilters").find(".table-del-btn").prop("disabled", !doCheck && !doIndeterminate);
|
||||
const selectionExists = doCheck || doIndeterminate;
|
||||
const $controls = getTableFiltersComponent(tableId);
|
||||
$controls.find(".js-tableShareBtn").prop("disabled", !selectionExists);
|
||||
$controls.find(".js-tableDeleteBtn").prop("disabled", !selectionExists);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user