fix calendar

This commit is contained in:
yuri
2018-02-05 10:18:31 +02:00
parent e4c0f19b1c
commit 06834dd8bf
@@ -158,10 +158,6 @@ Espo.define('crm:views/calendar/calendar', ['view', 'lib!full-calendar'], functi
if (Object.prototype.toString.call(this.enabledScopeList) !== '[object Array]') {
this.enabledScopeList = [];
}
this.once('remove', function () {
this.isRemoved = true;
}, this);
},
toggleScopeFilter: function (name) {
@@ -380,7 +376,7 @@ Espo.define('crm:views/calendar/calendar', ['view', 'lib!full-calendar'], functi
},
adjustSize: function () {
if (this.isRemoved) return;
if (this.isRemoved()) return;
var height = this.getCalculatedHeight();
this.$calendar.fullCalendar('option', 'contentHeight', height);
},