From 07acc454725d3f688c54aaa3615a0f7c622d71b8 Mon Sep 17 00:00:00 2001 From: zeeshan Date: Wed, 30 Sep 2026 17:50:48 +0530 Subject: [PATCH] Titans (Core HCP - Final ) --- ...5bd1-442d-4226-bacf-5f12e647373d.blade.php | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php b/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php index 22d5b293..17238b7c 100644 --- a/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php +++ b/resources/views/form/rapport-titans/1790753526-37d85bd1-442d-4226-bacf-5f12e647373d.blade.php @@ -608,7 +608,7 @@ - $('#execution-plan_date').on('change', function () { + /* $('#execution-plan_date').on('change', function () { const monthNames = [ "Oct-26", "Nov-26", "Dec-26" ]; @@ -626,7 +626,31 @@ // Jar user ne date clear keli tar dropdown reset karne $('#execution-month_of_engagement').val('').trigger('change'); } - }); + }); */ + + $('#execution-plan_date').on('change', function () { + const monthNames = [ + "Oct-26", // Index 0 (10 व्या महिन्यासाठी) + "Nov-26", // Index 1 (11 व्या महिन्यासाठी) + "Dec-26" // Index 2 (12 व्या महिन्यासाठी) + ]; + + const selectedDateVal = $(this).val(); // e.g. "2026-10-15" + + if (selectedDateVal) { + const parts = selectedDateVal.split('-'); + const monthNumber = parseInt(parts[1], 10); // 10, 11, किंवा 12 + + // 10 वजा करून 0, 1, 2 इंडेक्स मिळवणे + const targetMonth = monthNames[monthNumber - 10] || ''; + + // Dropdown madhe targetMonth select karne + $('#execution-month_of_engagement').val(targetMonth).trigger('change'); + } else { + // Jar user ne date clear keli tar dropdown reset karne + $('#execution-month_of_engagement').val('').trigger('change'); + } +}); })