escape comments html in timeline

stable
Juanfran 2015-06-10 09:57:30 +02:00
parent 0a47663057
commit 66bb9ba73b
1 changed files with 4 additions and 4 deletions

View File

@ -61,7 +61,7 @@ timelineType = (timeline, event) ->
key: 'TIMELINE.NEW_COMMENT_US', key: 'TIMELINE.NEW_COMMENT_US',
translate_params: ['username', 'obj_name'], translate_params: ['username', 'obj_name'],
description: (timeline) -> description: (timeline) ->
return timeline.data.comment return $(timeline.data.comment_html).text()
}, },
{ # NewIssueComment { # NewIssueComment
check: (timeline, event) -> check: (timeline, event) ->
@ -69,15 +69,15 @@ timelineType = (timeline, event) ->
key: 'TIMELINE.NEW_COMMENT_ISSUE', key: 'TIMELINE.NEW_COMMENT_ISSUE',
translate_params: ['username', 'obj_name'], translate_params: ['username', 'obj_name'],
description: (timeline) -> description: (timeline) ->
return timeline.data.comment return $(timeline.data.comment_html).text()
}, },
{ # NewTask { # NewTaskComment
check: (timeline, event) -> check: (timeline, event) ->
return timeline.data.comment && event.obj == 'task' return timeline.data.comment && event.obj == 'task'
key: 'TIMELINE.NEW_COMMENT_TASK' key: 'TIMELINE.NEW_COMMENT_TASK'
translate_params: ['username', 'obj_name'], translate_params: ['username', 'obj_name'],
description: (timeline) -> description: (timeline) ->
return timeline.data.comment return $(timeline.data.comment_html).text()
}, },
{ # UsToMilestone { # UsToMilestone
check: (timeline, event, field_name) -> check: (timeline, event, field_name) ->