Merge branch 'hotfix/4.2.6'

This commit is contained in:
yuri
2016-10-05 12:37:45 +03:00
4 changed files with 18 additions and 9 deletions
-6
View File
@@ -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();
},
+6 -1
View File
@@ -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));
},