From 97c951484dfb637b31ffcc631334b392008e8e12 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 25 Jul 2014 15:18:37 +0300 Subject: [PATCH] fix add dashlet --- frontend/client/src/views/dashboard.js | 1 + frontend/client/src/views/dashlet.js | 1 + 2 files changed, 2 insertions(+) diff --git a/frontend/client/src/views/dashboard.js b/frontend/client/src/views/dashboard.js index 68588f6eab..05cbaec82e 100644 --- a/frontend/client/src/views/dashboard.js +++ b/frontend/client/src/views/dashboard.js @@ -154,6 +154,7 @@ Espo.define('Views.Dashboard', 'View', function (Dep) { this.getView('dashlets').createView('dashlet-' + id, 'Dashlet', { label: name, + name: name, id: id, el: '#dashlet-container-' + id }, function (view) { diff --git a/frontend/client/src/views/dashlet.js b/frontend/client/src/views/dashlet.js index 93f0d489a8..5fa99f3337 100644 --- a/frontend/client/src/views/dashlet.js +++ b/frontend/client/src/views/dashlet.js @@ -56,6 +56,7 @@ Espo.define('Views.Dashlet', 'View', function (Dep) { var bodySelector = '#dashlet-' + this.id + ' .dashlet-body'; var module = this.getMetadata().get('dashlets.' + this.name + '.module'); + this.createView('body', Espo.Utils.composeClassName(module, this.name, 'Dashlets'), {el: bodySelector, id: this.id}); },