From 3300e42a01e81b9f1356c856bcf726e871364138 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Fri, 5 Apr 2024 12:33:41 +0530 Subject: [PATCH] Bug Fixes Edit Leave balance label : ps --- .../modules/Leave/views/edit_leave.php | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/application/modules/Leave/views/edit_leave.php b/application/modules/Leave/views/edit_leave.php index 216a3ca..790818d 100644 --- a/application/modules/Leave/views/edit_leave.php +++ b/application/modules/Leave/views/edit_leave.php @@ -141,9 +141,9 @@ - +
- +
@@ -445,9 +445,8 @@ function calculateDateDifference() { if( id === 'permission' ){ - $('#hidedate').hide() - $('#balance').hide() - $('#leave_bal').hide() + $('#hidedate').hide(); + $('.balance').hide(); $('#fromdate').removeAttr('required'); $('#todate').removeAttr('required'); $('#showtime').show(); @@ -461,8 +460,8 @@ function calculateDateDifference() { $('#hidedate').show(); $('#showtime').hide(); $('#showdate').hide(); - $('#balance').show() - $('#leave_bal').show() + $('.balance').show(); + } @@ -482,8 +481,7 @@ function calculateDateDifference() { if( selectedOptionId === 'permission'){ $('#hidedate').hide(); - $('#balance').hide(); - $('#leave_bal').hide(); + $('.balance').hide(); $('#fromdate').removeAttr('required'); $('#todate').removeAttr('required'); $('#myDatepicker').prop('required', true); @@ -500,8 +498,7 @@ function calculateDateDifference() { $('#hidedate').show(); $('#showtime').hide(); $('#showdate').hide(); - $('#balance').show(); - $('#leave_bal').show(); + $('.balance').show(); $('#fromdate').prop('required', true); $('#todate').prop('required', true); }