summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/js/lib/views')
-rw-r--r--public/assets/js/lib/views/details/comments.js2
-rw-r--r--public/assets/js/lib/views/index/hootbox.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/public/assets/js/lib/views/details/comments.js b/public/assets/js/lib/views/details/comments.js
index 168cc3f..399c90d 100644
--- a/public/assets/js/lib/views/details/comments.js
+++ b/public/assets/js/lib/views/details/comments.js
@@ -17,7 +17,7 @@ var CommentsView = FormView.extend({
parse: function(comment){
var datetime = verbose_date(comment.date, true)
var t = this.template.replace(/{{username}}/g, comment.username)
- .replace(/{{comment}}/g, comment.comment)
+ .replace(/{{comment}}/g, tidy_urls(comment.comment))
.replace(/{{date}}/g, datetime[0])
.replace(/{{time}}/g, datetime[1])
return t
diff --git a/public/assets/js/lib/views/index/hootbox.js b/public/assets/js/lib/views/index/hootbox.js
index 15de06b..9d1cc3d 100644
--- a/public/assets/js/lib/views/index/hootbox.js
+++ b/public/assets/js/lib/views/index/hootbox.js
@@ -17,7 +17,7 @@ var HootBox = FormView.extend({
parse: function(comment){
var t = this.template.replace(/{{username}}/g, comment.username)
- .replace(/{{comment}}/g, comment.comment)
+ .replace(/{{comment}}/g, tidy_urls(comment.comment, true))
return t
},