Browse Source

Replace `\n` with `<br>` in `abp-sweetalert2.js`

Resolve #19274
pull/19428/head
maliming 3 years ago
parent
commit
80b11167c4
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 4
      framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/sweetalert2/abp-sweetalert2.js

4
framework/src/Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared/wwwroot/libs/abp/aspnetcore-mvc-ui-theme-shared/sweetalert2/abp-sweetalert2.js

@ -35,6 +35,8 @@ var abp = abp || {};
/* MESSAGE **************************************************/
abp.utils = abp.utils || {};
abp.utils.htmlEscape = abp.utils.htmlEscape || function (str) { return str; };
var showMessage = function (type, message, title) {
var opts = $.extend(
{},
@ -42,7 +44,7 @@ var abp = abp || {};
abp.libs.sweetAlert.config[type],
{
title: title,
text: message
html: abp.utils.htmlEscape(message).replace(/\n/g, '<br>')
}
);

Loading…
Cancel
Save