Skip to content

Commit

Permalink
ブログ記事に「/」が入る場合、削除時に「\/」と表示される問題を改善 (#1560)
Browse files Browse the repository at this point in the history
マージしました!
  • Loading branch information
seto1 committed Nov 5, 2020
1 parent 4f655fa commit 3263d01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@
$(selector).click(function() {
if($(this).attr('data-confirm-message')) {
var message = $(this).attr('data-confirm-message');
message = message.replace(/\\u([a-fA-F0-9]{4})/g, function(matchedString, group) {
return String.fromCharCode(parseInt(group, 16));
}).replace(/\\n/g, '\n');
message = JSON.parse('"' + message + '"').replace(/\\n/g, '\n');
if(!confirm(message)) {
return false;
}
Expand Down
4 changes: 1 addition & 3 deletions lib/Baser/webroot/js/admin/libs/jquery.bcToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@
$(selector).click(function() {
if($(this).attr('data-confirm-message')) {
var message = $(this).attr('data-confirm-message');
message = message.replace(/\\u([a-fA-F0-9]{4})/g, function(matchedString, group) {
return String.fromCharCode(parseInt(group, 16));
}).replace(/\\n/g, '\n');
message = JSON.parse('"' + message + '"').replace(/\\n/g, '\n');
if(!confirm(message)) {
return false;
}
Expand Down

0 comments on commit 3263d01

Please sign in to comment.