From 2c62bd40169d06fc41ee325fef0ef8dcdbe8d91f Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Tue, 30 Aug 2016 13:54:59 +0200 Subject: [PATCH] When replying, use @username only --- src/scripts/tutti/2_comments.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/tutti/2_comments.js b/src/scripts/tutti/2_comments.js index 97811470..5bfd057e 100644 --- a/src/scripts/tutti/2_comments.js +++ b/src/scripts/tutti/2_comments.js @@ -21,8 +21,8 @@ $(document).on('click','body .comment-action-reply',function(e){ commentField.setAttribute('data-parent_id', parentNodeId); // Start the comment field with @authorname: - var replyAuthor = $(this).parent().parent().find('.comment-author:first').html(); - $(commentField).val("**@" + replyAuthor + ":** "); + var replyAuthor = $(this).parent().parent().find('.comment-author:first span').html(); + $(commentField).val("**@" + replyAuthor.slice(1, -1) + ":** "); // Add class for styling $('.comment-container').removeClass('is-replying');