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); }