Skip to content

Commit

Permalink
Adding animation to table clear in workday waiver
Browse files Browse the repository at this point in the history
  • Loading branch information
araujoarthur0 committed Oct 10, 2023
1 parent 19f3c90 commit ce3c650
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/workday-waiver.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ce3c650

Please sign in to comment.