From e81058a05dde6f7b752ee061902992786b11adfe Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 15 Apr 2024 14:09:55 +0200 Subject: [PATCH] Patch the empty month and year selection of blocked periods (#1494) --- assets/js/pages/blocked_periods.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/assets/js/pages/blocked_periods.js b/assets/js/pages/blocked_periods.js index 1b5e70e5..b4b7ba0f 100644 --- a/assets/js/pages/blocked_periods.js +++ b/assets/js/pages/blocked_periods.js @@ -80,6 +80,9 @@ App.Pages.BlockedPeriods = (function () { $blockedPeriods.find('.record-details .form-label span').prop('hidden', false); $filterBlockedPeriods.find('button').prop('disabled', true); $filterBlockedPeriods.find('.results').css('color', '#AAA'); + + App.Utils.UI.setDateTimePickerValue($startDateTime, moment('00:00', 'HH:mm').toDate()); + App.Utils.UI.setDateTimePickerValue($endDateTime, moment('00:00', 'HH:mm').add(1, 'day').toDate()); }); /**