diff --git a/.gitignore b/.gitignore index 928641fa2..dbe20d650 100755 --- a/.gitignore +++ b/.gitignore @@ -57,6 +57,7 @@ coverage.xml # Django stuff: *.log local_settings.py +TestDB_Horilla.sqlite3 db.sqlite3 db.sqlite3-journal diff --git a/base/static/base/toggleColumn.js b/base/static/base/toggleColumn.js index 429d96e8d..f812e149a 100644 --- a/base/static/base/toggleColumn.js +++ b/base/static/base/toggleColumn.js @@ -32,8 +32,8 @@ function toggleColumns(tableId, fieldContainer) { } let selectButtons = $(`
- - + +
`) $(`#${fieldContainer}`).parent().prepend(selectButtons) diff --git a/base/templates/base/rotating_shift/rotating_shift_assign_view.html b/base/templates/base/rotating_shift/rotating_shift_assign_view.html index f2a2c3c09..d9d64435f 100644 --- a/base/templates/base/rotating_shift/rotating_shift_assign_view.html +++ b/base/templates/base/rotating_shift/rotating_shift_assign_view.html @@ -398,5 +398,4 @@ if (!localStorageroratingShiftCells) { $("#roratingShiftCells").find("[type=checkbox]").prop("checked", true); } - $("[type=checkbox]").change(); diff --git a/base/templates/base/rotating_work_type/rotating_work_type_assign_view.html b/base/templates/base/rotating_work_type/rotating_work_type_assign_view.html index 092afbca7..1a93cea06 100644 --- a/base/templates/base/rotating_work_type/rotating_work_type_assign_view.html +++ b/base/templates/base/rotating_work_type/rotating_work_type_assign_view.html @@ -399,5 +399,4 @@ if (!localStorageroratingWorkTypeCells) { $("#roratingWorkTypeCells").find("[type=checkbox]").prop("checked", true); } - $("[type=checkbox]").change(); diff --git a/base/templates/work_type_request/htmx/requests.html b/base/templates/work_type_request/htmx/requests.html index 762497161..9a66a750c 100755 --- a/base/templates/work_type_request/htmx/requests.html +++ b/base/templates/work_type_request/htmx/requests.html @@ -427,5 +427,4 @@ if (!localStorageWorkTypeReqCells) { $("#workTypeRequestCells").find("[type=checkbox]").prop("checked", true); } - $("[type=checkbox]").change(); - + diff --git a/payroll/templates/payroll/payslip/payslip_table.html b/payroll/templates/payroll/payslip/payslip_table.html index e9484d4af..88aa0fa13 100644 --- a/payroll/templates/payroll/payslip/payslip_table.html +++ b/payroll/templates/payroll/payslip/payslip_table.html @@ -246,10 +246,9 @@ }); }); // toggle columns // - toggleColumns("payslip_column_tab", "payslipCells") + toggleColumns("payslip-column-table", "payslipCells") localStoragepayslipCells = localStorage.getItem("payslip_column_tab") if (!localStoragepayslipCells) { $("#payslipCells").find("[type=checkbox]").prop("checked", true) } - $("[type=checkbox]").change()