diff --git a/public/js/pages/timerecordingReport/index.js b/public/js/pages/timerecordingReport/index.js index 2be23e320..292f89feb 100644 --- a/public/js/pages/timerecordingReport/index.js +++ b/public/js/pages/timerecordingReport/index.js @@ -369,6 +369,14 @@ $(document).ready(function () { $('#days-div').find('input').attr("min", "0"); $('#days').prop("required", true); $('#days-div').find('input').val(""); + } else if (parseInt($(this).find(':selected').data('hourday')) === 10) { + $("#endtime-div").hide(); + $("#endtime-div").find('input').each(function () { + $(this).prop("required", false); + }); + $('#days-div').hide(); + $('#days').prop("required", false); + $("#div-calc-overtime").hide(); } if (parseInt($(this).find(':selected').data('comment')) === 1) { $('#comment').prop("required", true);