also adds the programmatically unselectable logic to the reject button

This commit is contained in:
SimonGschnell
2024-05-02 11:43:19 +02:00
parent bcafb6cea6
commit 0b58d4fd6f
@@ -429,6 +429,17 @@ $(function () {
// Update status 'genehmigt'
$("#tableWidgetTabulator").tabulator("updateData", data.retval);
const selectedRows = $("#tableWidgetTabulator").tabulator("getSelectedRows");
// makes all denied anrechnungen unselectable by adding the isSelectable property and retriggering the rowFormatter function
selectedRows.forEach(row=>{
row.update({...row.getData(), isSelectable:false});
row.reformat();
})
// deselect all selected rows
$("#tableWidgetTabulator").tabulator("deselectRow", selectedRows);
// Print success message
FHC_DialogLib.alertSuccess(
FHC_PhrasesLib.t("ui", "anrechnungenWurdenNichtEmpfohlen")