[UPDT] BASE: Updation in rotating shift js file by adding toggleclass for display unselection of records

This commit is contained in:
Horilla
2024-02-21 10:48:43 +05:30
parent 5e0652f26e
commit ef5af5ee59
2 changed files with 15 additions and 5 deletions

View File

@@ -13,7 +13,7 @@
<div
class="oh-checkpoint-badge text-secondary mb-2"
id="unselectAllRShifts"
style="cursor: pointer"
style="cursor: pointer; display: none;"
>
{% trans "Unselect All Shifts" %}
</div>
@@ -21,7 +21,7 @@
<div
class="oh-checkpoint-badge text-info mb-2"
id="exportRShifts"
style="cursor: pointer; display: none"
style="cursor: pointer; display: none;"
>
{% trans "Export Shifts" %}
</div>
@@ -353,8 +353,10 @@
if (selectedCount === 0) {
$("#selectedShowRShifts").css("display", "none");
$("#exportRShifts").css("display", "none");
$("#unselectAllRShifts").css("display", "none");
} else {
$("#exportRShifts").css("display", "inline-flex");
$("#unselectAllRShifts").css("display", "inline-flex");
$("#selectedShowRShifts").css("display", "inline-flex");
$("#selectedShowRShifts").text(selectedCount + " - " + message);
}
@@ -364,6 +366,9 @@
$(document).ready(function() {
$(".all-rshift-row").change(function () {
if ($('.all-rshift').is(":checked")) {
$(".all-rshift").prop("checked", false);
}
addingRShiftIds();
});

View File

@@ -12,14 +12,14 @@
<div
class="oh-checkpoint-badge text-secondary mb-2"
id="unselectAllRShifts"
style="cursor: pointer"
style="cursor: pointer;display: none;"
>
{% trans "Unselect All Shifts" %}
</div>
<div
class="oh-checkpoint-badge text-info mb-2"
id="exportRShifts"
style="cursor: pointer; display: none"
style="cursor: pointer; display: none;"
>
{% trans "Export Shifts" %}
</div>
@@ -195,7 +195,7 @@
<!-- end of sticky table -->
<!-- start of pagination -->
<div class="oh-pagination oh-wrapper">
<div class="oh-pagination">
<span class="oh-pagination__page">
{% trans "Page" %} {{ rshift_assign.number }} {% trans "of" %} {{ rshift_assign.paginator.num_pages }}.
</span>
@@ -302,8 +302,10 @@
if (selectedCount === 0) {
$("#selectedShowRShifts").css("display", "none");
$("#exportRShifts").css("display", "none");
$("#unselectAllRShifts").css("display", "none");
} else {
$("#exportRShifts").css("display", "inline-flex");
$("#unselectAllRShifts").css("display", "inline-flex");
$("#selectedShowRShifts").css("display", "inline-flex");
$("#selectedShowRShifts").text(selectedCount + " - " + message);
}
@@ -313,6 +315,9 @@
$(document).ready(function() {
$(".all-rshift-row").change(function () {
if ($('.all-rshift').is(":checked")) {
$(".all-rshift").prop("checked", false);
}
addingRShiftIds();
});