Browse Source

[fix] guest in comments

version-14
Rushabh Mehta 9 years ago
parent
commit
3b434035da
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      frappe/templates/includes/comments/comments.html

+ 4
- 2
frappe/templates/includes/comments/comments.html View File

@@ -69,9 +69,11 @@
if(frappe.is_user_logged_in()) {
full_name = getCookie("full_name");
user_id = getCookie("user_id");
if(user_id != "Guest") {
$("[name='comment_by']").val(user_id);
$("[name='comment_by_fullname']").val(full_name);
}
}
$("[name='comment_by']").val(user_id);
$("[name='comment_by_fullname']").val(full_name);
$("#comment-form textarea").val("");
})
$("#submit-comment").click(function() {


Loading…
Cancel
Save