fix list view

This commit is contained in:
yuri
2017-01-24 17:35:56 +02:00
parent c114e08541
commit 30097c32b5
+5 -1
View File
@@ -193,12 +193,16 @@ Espo.define('views/list', ['views/main', 'search-manager'], function (Dep, Searc
var listViewName = this.getRecordViewName();
this.createView('list', listViewName, o, function (view) {
if (!this.hasParentView()) return;
if (!this.hasParentView()) {
view.undelegateEvents();
return;
}
view.render();
this.listenToOnce(view, 'after:render', function () {
if (!this.hasParentView()) {
view.undelegateEvents();
this.clearView('list');
}
}, this);