From 9ab1d16ea0aad5705817507494da68ee7bb4d2cd Mon Sep 17 00:00:00 2001 From: yuri Date: Fri, 2 Oct 2015 15:09:39 +0300 Subject: [PATCH] detailLayout param --- frontend/client/src/views/record/detail.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/frontend/client/src/views/record/detail.js b/frontend/client/src/views/record/detail.js index c1f96f6f9b..bb653c13c5 100644 --- a/frontend/client/src/views/record/detail.js +++ b/frontend/client/src/views/record/detail.js @@ -34,6 +34,8 @@ Espo.define('views/record/detail', 'views/record/base', function (Dep) { gridLayout: null, + detailLayout: null, + /** * @property {string} or {bool} ['both', 'top', 'bottom', false, true] Where to display buttons. */ @@ -627,10 +629,19 @@ Espo.define('views/record/detail', 'views/record/base', function (Dep) { return; } + if (this.detailLayout) { + this.gridLayout = { + type: 'record', + layout: this.convertDetailLayout(this.detailLayout) + }; + callback(this.gridLayout); + return; + } + this._helper.layoutManager.get(this.model.name, this.layoutName, function (simpleLayout) { this.gridLayout = { type: 'record', - layout: this.convertDetailLayout(simpleLayout), + layout: this.convertDetailLayout(simpleLayout) }; callback(this.gridLayout); }.bind(this));