fix add dashlet

This commit is contained in:
Yuri Kuznetsov
2014-07-25 15:18:37 +03:00
parent 2215f15aaf
commit 97c951484d
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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) {
+1
View File
@@ -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});
},