From 632467a9a62114e23aa8060ebc7cee717ab4c116 Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 20 Dec 2016 16:10:33 +0200 Subject: [PATCH 1/2] close modal on location change --- client/src/views/modals/detail.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/views/modals/detail.js b/client/src/views/modals/detail.js index a2f055a3f3..6b2c44ff51 100644 --- a/client/src/views/modals/detail.js +++ b/client/src/views/modals/detail.js @@ -138,6 +138,10 @@ Espo.define('views/modals/detail', 'views/modal', function (Dep) { this.createRecordView(); } }, this); + + this.listenToOnce(this.getRouter(), 'routed', function () { + this.remove(); + }, this); }, addEditButton: function () { From 84c56256f792ec3be6096ea9f0f5cf16b8630dbc Mon Sep 17 00:00:00 2001 From: yuri Date: Tue, 20 Dec 2016 17:52:30 +0200 Subject: [PATCH 2/2] css --- frontend/less/espo/custom.less | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/less/espo/custom.less b/frontend/less/espo/custom.less index a4d3559677..6796869a92 100644 --- a/frontend/less/espo/custom.less +++ b/frontend/less/espo/custom.less @@ -488,6 +488,10 @@ select[multiple].input-sm { } } +.panel-body .no-bottom-margin { + margin-bottom: -@panel-padding; +} + .table.less-padding > thead > tr > th, .table.less-padding > tbody >tr > th, .table.less-padding > tfoot >tr > th,