[UPDT] BASE: Updated js file for work type request
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<div
|
||||
class="oh-checkpoint-badge text-secondary mb-2"
|
||||
id="unselectAllWorktypes"
|
||||
style="cursor: pointer"
|
||||
style="cursor: pointer;display: none;"
|
||||
>
|
||||
{% trans "Unselect All Worktypes" %}
|
||||
</div>
|
||||
@@ -338,8 +338,10 @@ style="cursor: pointer; display: none"
|
||||
if (selectedCount === 0) {
|
||||
$("#selectedShowWorktypes").css("display", "none");
|
||||
$("#exportWorktypes").css("display", "none");
|
||||
$("#unselectAllWorktypes").css("display", "none");
|
||||
} else {
|
||||
$("#exportWorktypes").css("display", "inline-flex");
|
||||
$("#unselectAllWorktypes").css("display", "inline-flex");
|
||||
$("#selectedShowWorktypes").css("display", "inline-flex");
|
||||
$("#selectedShowWorktypes").text(selectedCount + " - " + message);
|
||||
}
|
||||
@@ -348,6 +350,9 @@ style="cursor: pointer; display: none"
|
||||
|
||||
$(document).ready(function () {
|
||||
$(".all-work-type-requests-row").change(function () {
|
||||
if ($('.all-work-type-requests').is(":checked")) {
|
||||
$(".all-work-type-requests").prop("checked", false);
|
||||
}
|
||||
addingWorktypeIds();
|
||||
});
|
||||
|
||||
|
||||
@@ -13,18 +13,18 @@ style="cursor: pointer"
|
||||
<div
|
||||
class="oh-checkpoint-badge text-secondary mb-2"
|
||||
id="unselectAllWorktypes"
|
||||
style="cursor: pointer"
|
||||
style="cursor: pointer;display: none;"
|
||||
>
|
||||
{% trans "Unselect All Worktypes" %}
|
||||
</div>
|
||||
<div
|
||||
class="oh-checkpoint-badge text-info mb-2"
|
||||
id="exportWorktypes"
|
||||
style="cursor: pointer; display: none"
|
||||
style="cursor: pointer; display: none;"
|
||||
>
|
||||
{% trans "Export Worktypes" %}
|
||||
</div>
|
||||
<div class="oh-checkpoint-badge text-danger mb-2" id="selectedShowWorktypes" style="display: none"></div>
|
||||
<div class="oh-checkpoint-badge text-danger mb-2" id="selectedShowWorktypes" style="display: none;"></div>
|
||||
|
||||
{% if data %}
|
||||
<div class="oh-table_sticky--wrapper">
|
||||
@@ -291,8 +291,10 @@ style="cursor: pointer; display: none"
|
||||
if (selectedCount === 0) {
|
||||
$("#selectedShowWorktypes").css("display", "none");
|
||||
$("#exportWorktypes").css("display", "none");
|
||||
$("#unselectAllWorktypes").css("display", "none");
|
||||
} else {
|
||||
$("#exportWorktypes").css("display", "inline-flex");
|
||||
$("#unselectAllWorktypes").css("display", "inline-flex");
|
||||
$("#selectedShowWorktypes").css("display", "inline-flex");
|
||||
$("#selectedShowWorktypes").text(selectedCount + " - " + message);
|
||||
}
|
||||
@@ -301,6 +303,9 @@ style="cursor: pointer; display: none"
|
||||
|
||||
$(document).ready(function () {
|
||||
$(".all-work-type-requests-row").change(function () {
|
||||
if ($('.all-work-type-requests').is(":checked")) {
|
||||
$(".all-work-type-requests").prop("checked", false);
|
||||
}
|
||||
addingWorktypeIds();
|
||||
});
|
||||
|
||||
|
||||
@@ -36,8 +36,11 @@
|
||||
</div>
|
||||
<!-- end of quick filters -->
|
||||
<div id="view-container" >
|
||||
{% if data %} {% include 'work_type_request/htmx/requests.html' %} {% else %}
|
||||
{% include 'work_type_request/htmx/empty_request.html' %} {% endif %}
|
||||
{% if data %}
|
||||
{% include 'work_type_request/htmx/requests.html' %}
|
||||
{% else %}
|
||||
{% include 'work_type_request/htmx/empty_request.html' %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user