Browse Source
Merge pull request #19428 from abpframework/abp-sweetalert2.js
Replace `\n` with `<br>` in `abp-sweetalert2.js`
pull/19431/head
Engincan VESKE
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
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>') |
|
|
|
} |
|
|
|
); |
|
|
|
|
|
|
|
|