mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user