fix concurrency

This commit is contained in:
yuri
2018-05-02 11:41:46 +03:00
parent 8572b565f3
commit 54af8ee7c6

View File

@@ -32,12 +32,14 @@
Espo.define('controller', [], function () {
var Controller = function (params, injections) {
this.initialize();
this.params = params || {};
this.baseController = injections.baseController;
this.viewFactory = injections.viewFactory;
this.modelFactory = injections.modelFactory;
this.collectionFactory = injections.collectionFactory;
this.baseController = injections.baseController;
this.initialize();
this._settings = injections.settings || null;
this._user = injections.user || null;
@@ -258,6 +260,10 @@ Espo.define('controller', [], function () {
master.hideLoadingNotification();
});
this.listenToOnce(this.baseController, 'action', function () {
main.cancelRender();
}, this);
if (master.currentViewKey) {
this.set('storedScrollTop-' + master.currentViewKey, $(window).scrollTop());
if (this.hasStoredMainView(master.currentViewKey)) {