mirror of
https://github.com/espocrm/espocrm.git
synced 2026-07-01 08:26:04 +00:00
fix concurrency
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user