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() {
|
$('#manage-unavailable #save-unavailable').click(function() {
|
||||||
var $dialog = $('#manage-unavailable');
|
var $dialog = $('#manage-unavailable');
|
||||||
var start = Date.parse($dialog.find('#unavailable-start').val());
|
var start = $dialog.find('#unavailable-start').datetimepicker('getDate');
|
||||||
var end = Date.parse($dialog.find('#unavailable-end').val());
|
var end = Date.parse($dialog.find('#unavailable-end').datetimepicker('getDate'));
|
||||||
|
|
||||||
if (start > end) {
|
if (start > end) {
|
||||||
// Start time is after end time - display message to user.
|
// Start time is after end time - display message to user.
|
||||||
|
|
Loading…
Reference in a new issue