Adapted Select-all-button to select only Anrechnungen progressed by STGL

Signed-off-by: cris-technikum <hainberg@technikum-wien.at>
This commit is contained in:
Cris
2021-01-20 19:16:17 +01:00
committed by cris-technikum
parent 97d86cc702
commit 9e5b03b2dc
@@ -55,6 +55,19 @@ var format_nullToMinus = function(cell, formatterParams){
return (cell.getValue() == null) ? '-' : cell.getValue();
}
/*
* Hook to overwrite TableWigdgets select-all-button behaviour
* Select all (filtered) rows that are progressed by stg leiter.
* (Ignore rows that are approved, rejected or in request for recommendation)
*/
function tableWidgetHook_selectAllButton(tableWidgetDiv){
tableWidgetDiv.find("#tableWidgetTabulator").tabulator('getRows', true)
.filter(row =>
row.getData().status_kurzbz == ANRECHNUNGSTATUS_PROGRESSED_BY_STGL
)
.forEach((row => row.select()));
}
$(function(){
// Pruefen ob Promise unterstuetzt wird