Fixed the column hiding, Added the HorillaDb file in gitignore + using columns instead of rows (#605)
* Added the HorillaDb file in gitignore + using columns instead of rows in actions tab * Fixed the typo which was hiding the columns in request table in work type reqest * Fixed the typo which was hiding the columns in request table in work type reqest * payslip table should have this as the first parameter for toggleColumns as we are passing id not data attribute , previous PR was wrong * Fix for column toggling issue * toggling issue fixed
This commit is contained in:
committed by
GitHub
parent
aa4919562d
commit
46607e65e9
1
.gitignore
vendored
1
.gitignore
vendored
@@ -57,6 +57,7 @@ coverage.xml
|
|||||||
# Django stuff:
|
# Django stuff:
|
||||||
*.log
|
*.log
|
||||||
local_settings.py
|
local_settings.py
|
||||||
|
TestDB_Horilla.sqlite3
|
||||||
db.sqlite3
|
db.sqlite3
|
||||||
db.sqlite3-journal
|
db.sqlite3-journal
|
||||||
|
|
||||||
|
|||||||
@@ -32,8 +32,8 @@ function toggleColumns(tableId, fieldContainer) {
|
|||||||
}
|
}
|
||||||
let selectButtons = $(`
|
let selectButtons = $(`
|
||||||
<div class="oh-dropdown_btn-header">
|
<div class="oh-dropdown_btn-header">
|
||||||
<button onclick="$(this).parent().parent().find('[type=checkbox]').prop('checked',true).change()" class="oh-btn oh-btn--success-outline">Select All Rows</button>
|
<button onclick="$(this).parent().parent().find('[type=checkbox]').prop('checked',true).change()" class="oh-btn oh-btn--success-outline">Select All Columns</button>
|
||||||
<button onclick="$(this).parent().parent().find('[type=checkbox]').prop('checked',false).change()" class="oh-btn oh-btn--primary-outline">Unselect All Rows</button>
|
<button onclick="$(this).parent().parent().find('[type=checkbox]').prop('checked',false).change()" class="oh-btn oh-btn--primary-outline">Unselect All Columns</button>
|
||||||
</div>
|
</div>
|
||||||
`)
|
`)
|
||||||
$(`#${fieldContainer}`).parent().prepend(selectButtons)
|
$(`#${fieldContainer}`).parent().prepend(selectButtons)
|
||||||
|
|||||||
@@ -398,5 +398,4 @@
|
|||||||
if (!localStorageroratingShiftCells) {
|
if (!localStorageroratingShiftCells) {
|
||||||
$("#roratingShiftCells").find("[type=checkbox]").prop("checked", true);
|
$("#roratingShiftCells").find("[type=checkbox]").prop("checked", true);
|
||||||
}
|
}
|
||||||
$("[type=checkbox]").change();
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -399,5 +399,4 @@
|
|||||||
if (!localStorageroratingWorkTypeCells) {
|
if (!localStorageroratingWorkTypeCells) {
|
||||||
$("#roratingWorkTypeCells").find("[type=checkbox]").prop("checked", true);
|
$("#roratingWorkTypeCells").find("[type=checkbox]").prop("checked", true);
|
||||||
}
|
}
|
||||||
$("[type=checkbox]").change();
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -427,5 +427,4 @@
|
|||||||
if (!localStorageWorkTypeReqCells) {
|
if (!localStorageWorkTypeReqCells) {
|
||||||
$("#workTypeRequestCells").find("[type=checkbox]").prop("checked", true);
|
$("#workTypeRequestCells").find("[type=checkbox]").prop("checked", true);
|
||||||
}
|
}
|
||||||
$("[type=checkbox]").change();
|
</script>
|
||||||
</script>
|
|
||||||
|
|||||||
@@ -246,10 +246,9 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
// toggle columns //
|
// toggle columns //
|
||||||
toggleColumns("payslip_column_tab", "payslipCells")
|
toggleColumns("payslip-column-table", "payslipCells")
|
||||||
localStoragepayslipCells = localStorage.getItem("payslip_column_tab")
|
localStoragepayslipCells = localStorage.getItem("payslip_column_tab")
|
||||||
if (!localStoragepayslipCells) {
|
if (!localStoragepayslipCells) {
|
||||||
$("#payslipCells").find("[type=checkbox]").prop("checked", true)
|
$("#payslipCells").find("[type=checkbox]").prop("checked", true)
|
||||||
}
|
}
|
||||||
$("[type=checkbox]").change()
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user