Skip to content

Commit

Permalink
解决历史轨迹和历史状态查看失败原因看不了的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ran222 committed Jun 29, 2017
1 parent 8283acf commit 02fdaee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ function splitFormatter(value) {
var replacement = "...";
if(null != value && value.length > maxLength) {
var vauleDetail = value.substring(0 , maxLength - replacement.length) + replacement;
return '<a href="javascript: void(0);" style="color:#FF0000;" onClick="showHistoryMessage(\'' + value.replace(/\n/g,"<br/>") + '\')">' + vauleDetail + '</a>';
value = value.replace(/\n/g,"<br/>").replace(/\'/g, "\\'").replace(/\r/g,"<br/>");
return '<a href="javascript: void(0);" style="color:#FF0000;" onClick="showHistoryMessage(\'' + value + '\')">' + vauleDetail + '</a>';
}
return value;
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function splitRemarkFormatter(value, row) {
var replacement = "...";
if(null != value && value.length > maxLength) {
var valueDetail = value.substring(0 , maxLength - replacement.length) + replacement;
value = value.replace(/\n/g,"<br/>").replace(/\'/g, "\\'");
value = value.replace(/\n/g,"<br/>").replace(/\'/g, "\\'").replace(/\r/g,"<br/>");
var remarkHtml;
if ("TASK_FAILED" === row.state || "TASK_ERROR" === row.state) {
remarkHtml = '<a href="javascript: void(0);" style="color:#FF0000;" onClick="showHistoryMessage(\'' + value + '\')">' + valueDetail + '</a>';
Expand Down

0 comments on commit 02fdaee

Please sign in to comment.