From 06834dd8bf3efeff69ac75fdc24eb76a43ff48a4 Mon Sep 17 00:00:00 2001 From: yuri Date: Mon, 5 Feb 2018 10:18:31 +0200 Subject: [PATCH] fix calendar --- client/modules/crm/src/views/calendar/calendar.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/modules/crm/src/views/calendar/calendar.js b/client/modules/crm/src/views/calendar/calendar.js index 15a3492984..c3ab16c197 100644 --- a/client/modules/crm/src/views/calendar/calendar.js +++ b/client/modules/crm/src/views/calendar/calendar.js @@ -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); },