diff --git a/public/js/lehre/anrechnung/approveAnrechnungUebersicht.js b/public/js/lehre/anrechnung/approveAnrechnungUebersicht.js index 97415a8f2..d16218de6 100644 --- a/public/js/lehre/anrechnung/approveAnrechnungUebersicht.js +++ b/public/js/lehre/anrechnung/approveAnrechnungUebersicht.js @@ -222,11 +222,12 @@ var format_empfehlung_anrechnung = function(cell, formatterParams){ * (Ignore rows that are approved, rejected or in request for recommendation) */ function tableWidgetHook_selectAllButton(tableWidgetDiv){ - tableWidgetDiv.find("#tableWidgetTabulator").tabulator('getRows', true) + var resultRows = tableWidgetDiv.find("#tableWidgetTabulator").tabulator('getRows', true) .filter(row => row.getData().status_kurzbz == ANRECHNUNGSTATUS_PROGRESSED_BY_STGL - ) - .forEach((row => row.select())); + ); + + tableWidgetDiv.find("#tableWidgetTabulator").tabulator('selectRow', resultRows); } diff --git a/public/js/lehre/anrechnung/reviewAnrechnungUebersicht.js b/public/js/lehre/anrechnung/reviewAnrechnungUebersicht.js index 2cf7c1623..2d5d65ac9 100644 --- a/public/js/lehre/anrechnung/reviewAnrechnungUebersicht.js +++ b/public/js/lehre/anrechnung/reviewAnrechnungUebersicht.js @@ -127,11 +127,12 @@ var format_empfehlung_anrechnung = function(cell, formatterParams){ * (Ignore rows that are approved, rejected or in request for recommendation) */ function tableWidgetHook_selectAllButton(tableWidgetDiv){ - tableWidgetDiv.find("#tableWidgetTabulator").tabulator('getRows', true) + var resultRows = tableWidgetDiv.find("#tableWidgetTabulator").tabulator('getRows', true) .filter(row => row.getData().status_kurzbz == ANRECHNUNGSTATUS_PROGRESSED_BY_LEKTOR - ) - .forEach((row => row.select())); + ); + + tableWidgetDiv.find("#tableWidgetTabulator").tabulator('selectRow', resultRows); } diff --git a/public/js/lehre/lehrauftrag/acceptLehrauftrag.js b/public/js/lehre/lehrauftrag/acceptLehrauftrag.js index a39fe3667..08a0645bc 100644 --- a/public/js/lehre/lehrauftrag/acceptLehrauftrag.js +++ b/public/js/lehre/lehrauftrag/acceptLehrauftrag.js @@ -274,12 +274,13 @@ function func_renderComplete(table){ * Select all (filtered) rows and ignore rows that are bestellt and erteilt */ function tableWidgetHook_selectAllButton(tableWidgetDiv){ - tableWidgetDiv.find("#tableWidgetTabulator").tabulator('getRows', true) + var resultRows = tableWidgetDiv.find("#tableWidgetTabulator").tabulator('getRows', true) .filter(row => row.getData().bestellt != null && // bestellt row.getData().erteilt != null && // AND erteilt row.getData().akzeptiert == null && // AND NOT akzeptiert - row.getData().status != 'Geändert') // AND NOT geändert - .forEach((row => row.select())); + row.getData().status != 'Geändert'); // AND NOT geändert + + tableWidgetDiv.find("#tableWidgetTabulator").tabulator('selectRow', resultRows); } // ----------------------------------------------------------------------------------------------------------------- diff --git a/public/js/lehre/lehrauftrag/approveLehrauftrag.js b/public/js/lehre/lehrauftrag/approveLehrauftrag.js index cd8816c1e..c16016cf5 100644 --- a/public/js/lehre/lehrauftrag/approveLehrauftrag.js +++ b/public/js/lehre/lehrauftrag/approveLehrauftrag.js @@ -319,12 +319,13 @@ function func_rowUpdated(row){ * Select all (filtered) rows that are bestellt */ function tableWidgetHook_selectAllButton(tableWidgetDiv){ - tableWidgetDiv.find("#tableWidgetTabulator").tabulator('getRows', true) + var resultRows = tableWidgetDiv.find("#tableWidgetTabulator").tabulator('getRows', true) .filter(row => row.getData().personalnummer >= 0 && // NOT dummies row.getData().bestellt != null && // AND bestellt row.getData().erteilt == null && // AND NOT erteilt - row.getData().status != 'Geändert') // AND NOT geaendert - .forEach((row => row.select())); + row.getData().status != 'Geändert'); // AND NOT geaendert + + tableWidgetDiv.find("#tableWidgetTabulator").tabulator('selectRow', resultRows); } // ----------------------------------------------------------------------------------------------------------------- diff --git a/public/js/lehre/lehrauftrag/orderLehrauftrag.js b/public/js/lehre/lehrauftrag/orderLehrauftrag.js index d6b165b65..06db3ce60 100644 --- a/public/js/lehre/lehrauftrag/orderLehrauftrag.js +++ b/public/js/lehre/lehrauftrag/orderLehrauftrag.js @@ -343,7 +343,7 @@ function func_rowUpdated(row){ * Select all (filtered) rows and ignore rows which have status bestellt */ function tableWidgetHook_selectAllButton(tableWidgetDiv){ - tableWidgetDiv.find("#tableWidgetTabulator").tabulator('getRows', true) + var resultRows = tableWidgetDiv.find("#tableWidgetTabulator").tabulator('getRows', true) .filter(row => ( row.getData().personalnummer > 0 || // not dummies row.getData().personalnummer == null) && // include Projektbetreuer @@ -355,8 +355,9 @@ function tableWidgetHook_selectAllButton(tableWidgetDiv){ (row.getData().bestellt != null && // OR (bestellt row.getData().status == 'Geändert') // AND geaendert) ) - ) - .forEach((row => row.select())); + ); + + tableWidgetDiv.find("#tableWidgetTabulator").tabulator('selectRow', resultRows); } // -----------------------------------------------------------------------------------------------------------------