diff --git a/frappe/website/doctype/help_article/templates/help_article.html b/frappe/website/doctype/help_article/templates/help_article.html index cdd830295f..a97154847b 100644 --- a/frappe/website/doctype/help_article/templates/help_article.html +++ b/frappe/website/doctype/help_article/templates/help_article.html @@ -25,6 +25,7 @@ {{ _("Was this article helpful?") }} +
@@ -41,20 +42,14 @@ frappe.ready(function() { helpful: this.getAttribute("data-value"), } - let disable_button = function(btn) { - btn.classList.remove("btn-outline-primary"); - btn.classList.add("btn-light"); - btn.disabled = true - } - frappe.call({ btn: this, method: "frappe.website.doctype.help_article.help_article.add_feedback", args: args, callback: function(r) { - disable_button($(".feedback")[0]); - disable_button($(".feedback")[1]); - frappe.msgprint(__("Thank you for your feedback!")); + $(".feedback")[0].classList.add("hide"); + $(".feedback")[1].classList.add("hide"); + $(".feedback-msg")[0].classList.remove("hide"); } }) });