Merge branch 'hotfix/4.2.6'
This commit is contained in:
@@ -101,12 +101,6 @@ Espo.define('views/admin/layouts/base', 'view', function (Dep) {
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
cancel: function () {
|
||||
this.loadLayout(function () {
|
||||
this.render();
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
reset: function () {
|
||||
this.render();
|
||||
},
|
||||
|
||||
@@ -40,7 +40,12 @@ Espo.define('views/admin/layouts/filters', 'views/admin/layouts/rows', function
|
||||
Dep.prototype.setup.call(this);
|
||||
|
||||
this.wait(true);
|
||||
this.loadLayout(function () {
|
||||
this.wait(false);
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
loadLayout: function (callback) {
|
||||
this.getModelFactory().create(this.scope, function (model) {
|
||||
this.getHelper().layoutManager.get(this.scope, this.type, function (layout) {
|
||||
|
||||
@@ -80,7 +85,7 @@ Espo.define('views/admin/layouts/filters', 'views/admin/layouts/rows', function
|
||||
this.rowLayout[i].label = this.getLanguage().translate(this.rowLayout[i].name, 'fields', this.scope);
|
||||
}
|
||||
|
||||
this.wait(false);
|
||||
callback();
|
||||
}.bind(this), false);
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
@@ -42,7 +42,12 @@ Espo.define('views/admin/layouts/mass-update', 'views/admin/layouts/rows', funct
|
||||
Dep.prototype.setup.call(this);
|
||||
|
||||
this.wait(true);
|
||||
this.loadLayout(function () {
|
||||
this.wait(false);
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
loadLayout: function (callback) {
|
||||
this.getModelFactory().create(this.scope, function (model) {
|
||||
this.getHelper().layoutManager.get(this.scope, this.type, function (layout) {
|
||||
|
||||
@@ -83,7 +88,7 @@ Espo.define('views/admin/layouts/mass-update', 'views/admin/layouts/rows', funct
|
||||
this.rowLayout[i].label = this.getLanguage().translate(this.rowLayout[i].name, 'fields', this.scope);
|
||||
}
|
||||
|
||||
this.wait(false);
|
||||
callback();
|
||||
}.bind(this), false);
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
@@ -38,7 +38,12 @@ Espo.define('views/admin/layouts/relationships', 'views/admin/layouts/rows', fun
|
||||
Dep.prototype.setup.call(this);
|
||||
|
||||
this.wait(true);
|
||||
this.loadLayout(function () {
|
||||
this.wait(false);
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
loadLayout: function (callback) {
|
||||
this.getModelFactory().create(this.scope, function (model) {
|
||||
this.getHelper().layoutManager.get(this.scope, this.type, function (layout) {
|
||||
|
||||
@@ -80,7 +85,7 @@ Espo.define('views/admin/layouts/relationships', 'views/admin/layouts/rows', fun
|
||||
this.rowLayout[i].label = this.getLanguage().translate(this.rowLayout[i].name, 'links', this.scope);
|
||||
}
|
||||
|
||||
this.wait(false);
|
||||
callback();
|
||||
}.bind(this), false);
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user