Browse Source

Merge pull request #19428 from abpframework/abp-sweetalert2.js

Replace `\n` with `<br>` in `abp-sweetalert2.js`
pull/19431/head
Engincan VESKE 3 years ago
committed by GitHub
parent
commit
75e6cf7633
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  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 **************************************************/ /* MESSAGE **************************************************/
abp.utils = abp.utils || {};
abp.utils.htmlEscape = abp.utils.htmlEscape || function (str) { return str; };
var showMessage = function (type, message, title) { var showMessage = function (type, message, title) {
var opts = $.extend( var opts = $.extend(
{}, {},
@ -42,7 +44,7 @@ var abp = abp || {};
abp.libs.sweetAlert.config[type], abp.libs.sweetAlert.config[type],
{ {
title: title, title: title,
text: message html: abp.utils.htmlEscape(message).replace(/\n/g, '<br>')
} }
); );

Loading…
Cancel
Save