mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-26 01:43:06 +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 = Date.parseExact(
|
||||||
appointment.end_datetime, 'yyyy-MM-dd HH:mm:ss')
|
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');
|
.toString('yyyy-MM-dd HH:mm:ss');
|
||||||
|
|
||||||
// Success callback
|
// Success callback
|
||||||
|
@ -412,7 +412,7 @@ window.BackendCalendarDefaultView = window.BackendCalendarDefaultView || {};
|
||||||
var undoFunction = function () {
|
var undoFunction = function () {
|
||||||
appointment.end_datetime = Date.parseExact(
|
appointment.end_datetime = Date.parseExact(
|
||||||
appointment.end_datetime, 'yyyy-MM-dd HH:mm:ss')
|
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');
|
.toString('yyyy-MM-dd HH:mm:ss');
|
||||||
|
|
||||||
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_appointment';
|
var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_save_appointment';
|
||||||
|
|
Loading…
Reference in a new issue