瀏覽代碼

[fix] guest in comments

version-14
Rushabh Mehta 9 年之前
父節點
當前提交
3b434035da
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      frappe/templates/includes/comments/comments.html

+ 4
- 2
frappe/templates/includes/comments/comments.html 查看文件

@@ -69,9 +69,11 @@
if(frappe.is_user_logged_in()) { if(frappe.is_user_logged_in()) {
full_name = getCookie("full_name"); full_name = getCookie("full_name");
user_id = getCookie("user_id"); 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(""); $("#comment-form textarea").val("");
}) })
$("#submit-comment").click(function() { $("#submit-comment").click(function() {


Loading…
取消
儲存