forked from mirrors/easyappointments
Reversed "getDate" methods for unavailabilities modal.
This commit is contained in:
parent
e1697ba35e
commit
8332eecee2
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue