close modal on location change

This commit is contained in:
yuri
2016-12-20 16:10:33 +02:00
parent 480772e022
commit d2faec45bb

View File

@@ -138,6 +138,10 @@ Espo.define('views/modals/detail', 'views/modal', function (Dep) {
this.createRecordView();
}
}, this);
this.listenToOnce(this.getRouter(), 'routed', function () {
this.remove();
}, this);
},
addEditButton: function () {