fix calendar

This commit is contained in:
yuri
2018-06-08 12:47:11 +03:00
parent 35e729b25c
commit 1e7acbdbd2
@@ -646,6 +646,7 @@ Espo.define('crm:views/calendar/calendar', ['view', 'lib!full-calendar'], functi
this.getModelFactory().create(event.scope, function (model) {
model.once('sync', function () {
this.notify(false);
this.$calendar.fullCalendar('updateEvent', event);
}.bind(this));
model.id = event.recordId;
model.save(attributes, {patch: true}).fail(function () {