mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
also adds the programmatically unselectable logic to the reject button
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user