diff --git a/recruitment/static/pipeline/activeTab.js b/recruitment/static/pipeline/activeTab.js index 5a49136a7..08f597844 100644 --- a/recruitment/static/pipeline/activeTab.js +++ b/recruitment/static/pipeline/activeTab.js @@ -14,4 +14,25 @@ $(document).ready(function () { var activeTab = $(this).attr('data-target'); localStorage.setItem('activeTabRecruitment',activeTab) }); - }); \ No newline at end of file + }); + + $(document).ready(function () { + $('.oh-tabs__tab').click(function (e) { + // Remove fw-bold class from all tabs + $('.oh-tabs__tab').removeClass('fw-bold'); + + // Add fw-bold class to the clicked tab + $(this).addClass('fw-bold'); + + // Your existing code for storing the active tab + var activeTab = $(this).attr('data-target'); + localStorage.setItem('activeTabOnboarding', activeTab); + }); + + // Your existing code for setting the active tab on page load + var activeTab = localStorage.getItem('activeTabOnboarding'); + if (activeTab != null) { + var tab = $(`[data-target="${activeTab}"]`); + $(tab).addClass('fw-bold'); + } +}); diff --git a/recruitment/templates/pipeline/pipeline.html b/recruitment/templates/pipeline/pipeline.html index cbbfa4f83..361a01639 100644 --- a/recruitment/templates/pipeline/pipeline.html +++ b/recruitment/templates/pipeline/pipeline.html @@ -139,7 +139,7 @@ data-stage-id="{{stage.id}}" data-recruitment-id="{{rec.id}}" > -
+
-
+
{{stage.active_candidates.all|length}} +
  • {{rec}}