From 8332eecee27a1dd079c232d5b4180dde42e9ec5a Mon Sep 17 00:00:00 2001 From: alextselegidis Date: Mon, 24 Oct 2016 00:06:06 +0200 Subject: [PATCH] Reversed "getDate" methods for unavailabilities modal. --- src/assets/js/backend_calendar_unavailabilities_modal.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/assets/js/backend_calendar_unavailabilities_modal.js b/src/assets/js/backend_calendar_unavailabilities_modal.js index 127caf3c..681c8868 100644 --- a/src/assets/js/backend_calendar_unavailabilities_modal.js +++ b/src/assets/js/backend_calendar_unavailabilities_modal.js @@ -30,8 +30,8 @@ window.BackendCalendarUnavailabilitiesModal = window.BackendCalendarUnavailabili */ $('#manage-unavailable #save-unavailable').click(function() { var $dialog = $('#manage-unavailable'); - var start = Date.parse($dialog.find('#unavailable-start').val()); - var end = Date.parse($dialog.find('#unavailable-end').val()); + var start = $dialog.find('#unavailable-start').datetimepicker('getDate'); + var end = Date.parse($dialog.find('#unavailable-end').datetimepicker('getDate')); if (start > end) { // Start time is after end time - display message to user.