From af9e77a5bb5d30a1bc71cbde00e481deca6efde5 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 13 Mar 2020 11:52:22 +0200 Subject: [PATCH] confirm msg markdown support --- client/src/view.js | 4 ++++ frontend/less/espo/custom.less | 1 + 2 files changed, 5 insertions(+) diff --git a/client/src/view.js b/client/src/view.js index 24d7fe9df7..396caa15b7 100644 --- a/client/src/view.js +++ b/client/src/view.js @@ -242,6 +242,10 @@ define('view', [], function () { var message = o.message; } + if (message) { + message = this.getHelper().transfromMarkdownText(message, {linksInNewTab: true}).toString(); + } + var confirmText = o.confirmText || this.translate('Yes'); var confirmStyle = o.confirmStyle || null; var cancelText = o.cancelText || this.translate('Cancel'); diff --git a/frontend/less/espo/custom.less b/frontend/less/espo/custom.less index a4f41e9c56..1df5a841ff 100644 --- a/frontend/less/espo/custom.less +++ b/frontend/less/espo/custom.less @@ -2580,6 +2580,7 @@ table.table td.cell .complex-text { } .complex-text, +.confirm-message, .popover-content { h1:first-child, h2:first-child,