mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-23 07:03:26 +03:00
Corrected event resizing of fullcalendar component.
This commit is contained in:
parent
faa911276e
commit
ef500106cc
1 changed files with 2 additions and 2 deletions
|
@ -389,7 +389,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
|
||||
appointment.end_datetime = Date.parseExact(
|
||||
appointment.end_datetime, 'yyyy-MM-dd HH:mm:ss')
|
||||
.add({minutes: delta.minutes()})
|
||||
.add({days: delta.days(), hours: delta.hours(), minutes: delta.minutes()})
|
||||
.toString('yyyy-MM-dd HH:mm:ss');
|
||||
|
||||
// Success callback
|
||||
|
@ -412,7 +412,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
|||
var undoFunction = function () {
|
||||
appointment.end_datetime = Date.parseExact(
|
||||
appointment.end_datetime, 'yyyy-MM-dd HH:mm:ss')
|
||||
.add({minutes: -delta.minutes()})
|
||||
.add({days: -delta.days(), hours: -delta.hours(), minutes: -delta.minutes()})
|
||||
.toString('yyyy-MM-dd HH:mm:ss');
|
||||
|
||||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_appointment';
|
||||
|
|
Loading…
Reference in a new issue