[minor] fix comment names
This commit is contained in:
parent
50d9ca9a34
commit
c2becc8fe3
1 changed files with 7 additions and 2 deletions
|
|
@ -65,8 +65,13 @@
|
|||
$(this).toggle(false);
|
||||
$("#comment-form").toggle();
|
||||
|
||||
$("[name='comment_by']").val(getCookie("user_id") || "");
|
||||
$("[name='comment_by_fullname']").val(getCookie("full_name") || "");
|
||||
var full_name = "", user_id = "";
|
||||
if(frappe.is_user_logged_in()) {
|
||||
full_name = getCookie("full_name");
|
||||
user_id = getCookie("user_id");
|
||||
}
|
||||
$("[name='comment_by']").val(user_id);
|
||||
$("[name='comment_by_fullname']").val(full_name);
|
||||
$("#comment-form textarea").val("");
|
||||
})
|
||||
$("#submit-comment").click(function() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue