From 1feb30035a4d7cff8299e95f61f6746eb3edbb66 Mon Sep 17 00:00:00 2001 From: shubham7saxena Date: Mon, 4 Jul 2016 15:17:01 +0530 Subject: [PATCH] the user can now add multiple comments without refreshing the page on any doctype --- frappe/templates/includes/comments/comments.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frappe/templates/includes/comments/comments.html b/frappe/templates/includes/comments/comments.html index ad76c7d577..1fddcbc30a 100644 --- a/frappe/templates/includes/comments/comments.html +++ b/frappe/templates/includes/comments/comments.html @@ -110,9 +110,10 @@ } else { $(r.message).appendTo("#comment-list"); $(".no-comment, .add-comment").toggle(false); - $("#comment-form") - .replaceWith('
Thank you for your comment!
') + $("#comment-form").toggle(); } + $(".add-comment").text('{{ _("Add Another Comment") }}'); + $(".add-comment").toggle(); } })