From ce3c650f44e996e49378826450681b7e32c30dcc Mon Sep 17 00:00:00 2001 From: Arthur Araujo Date: Mon, 9 Oct 2023 21:11:53 -0300 Subject: [PATCH] Adding animation to table clear in workday waiver --- src/workday-waiver.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/workday-waiver.js b/src/workday-waiver.js index 46cdee0f4..4d22521bf 100644 --- a/src/workday-waiver.js +++ b/src/workday-waiver.js @@ -329,12 +329,7 @@ function clearWaiverList() function clearTable(id) { - const table = $(`#${id} tbody`)[0]; - // Clear all rows before adding new ones - while (table.rows.length >= 1) - { - table.rows[0].remove(); - } + $(`#${id} tbody tr`).fadeOut(300, () => { $(this).remove(); }); } async function loadHolidaysTable()