From 2be058bfd57790616a9d3282260a89dc1ccf65ab Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 11 Dec 2017 09:31:54 +0100 Subject: checkin working, auth.user populating --- public/assets/js/lib/views/details/comments.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'public/assets/js/lib/views/details/comments.js') diff --git a/public/assets/js/lib/views/details/comments.js b/public/assets/js/lib/views/details/comments.js index 5d99138..202ae72 100644 --- a/public/assets/js/lib/views/details/comments.js +++ b/public/assets/js/lib/views/details/comments.js @@ -27,6 +27,9 @@ var CommentsView = FormView.extend({ .replace(/{{date}}/g, datetime[0]) .replace(/{{time}}/g, datetime[1]) var $t = $(t) + if (auth.user.username !== comment.username) { + $t.find(".edit-links").remove() + } return $t }, @@ -37,7 +40,6 @@ var CommentsView = FormView.extend({ appendComment: function(comment){ var $el = this.parse(comment) - console.log($el) $el.insertBefore(this.$formRow) }, -- cgit v1.2.3-70-g09d2