diff --git a/client/lib/bull.js b/client/lib/bull.js index 6bc34aee7a..a34b6a75f8 100644 --- a/client/lib/bull.js +++ b/client/lib/bull.js @@ -611,6 +611,8 @@ var Bull = Bull || {}; }, this); }, + handleDataBeforeRender: function (data) {}, + _getHtml: function (callback) { this._isBeingRendered = true; this.trigger("render", this); @@ -622,6 +624,7 @@ var Bull = Bull || {}; if (this.model || null) { data.model = this.model; } + this.handleDataBeforeRender(data); this._getTemplate(function (template) { var html = this._renderer.render(template, data); callback(html); diff --git a/client/modules/crm/res/templates/calendar/record/shared-options.tpl b/client/modules/crm/res/templates/calendar/record/shared-options.tpl index 3c6e169cce..271d8183d0 100644 --- a/client/modules/crm/res/templates/calendar/record/shared-options.tpl +++ b/client/modules/crm/res/templates/calendar/record/shared-options.tpl @@ -1,4 +1,4 @@