From 39f8bb3df8c0f848d082e4f55770d15e7a0323c9 Mon Sep 17 00:00:00 2001 From: Horilla Date: Mon, 26 Feb 2024 20:07:00 +0530 Subject: [PATCH] [FIX] ONBOARDING: Candidate select issue when filter applied --- .../templates/onboarding/candidates.html | 369 ++++++++---------- 1 file changed, 153 insertions(+), 216 deletions(-) diff --git a/onboarding/templates/onboarding/candidates.html b/onboarding/templates/onboarding/candidates.html index 7b0d8d432..ae4aa5ee1 100644 --- a/onboarding/templates/onboarding/candidates.html +++ b/onboarding/templates/onboarding/candidates.html @@ -5,18 +5,20 @@ } + + {% if candidates %}
{% trans "Select All Candidates" %}
-
+ -
+ -
+
@@ -42,11 +44,11 @@
+ onchange="$(this).closest('.oh-sticky-table').find('.candidate-checkbox').prop('checked',$(this).is(':checked')).change();" + />
{% trans "Candidate" %}
@@ -66,9 +68,9 @@
@@ -131,7 +133,7 @@ data-toggle="oh-modal-toggle" href="{% url 'email-send' %}?ids={{candidate.id}}"> {% endif %} -
@@ -240,21 +242,7 @@ }, }); }); - $(".all-candidate-row").change(function (e) { - e.preventDefault(); - ids = $("[name=ids]").val() - id = $(this).attr("id"); - checked = $(this).is(":checked") - const index = ids.indexOf(id); - if (index !== -1) { - ids.splice(index, 1); - } - if (checked) { - ids.push(id) - } - $("[name=ids]").val(ids); - }); }); // toggle columns // toggleColumns("candidate-view-table","CandidateViewCells") @@ -262,7 +250,7 @@ if (!localStorageCandidateViewCells) { $("#CandidateViewCells").find("[type=checkbox]").prop("checked",true) } - $("[type=checkbox]").change() + // $("[type=checkbox]").change() // end of toggle column//
- -