Sfoglia il codice sorgente

[fix] guest in comments

version-14
Rushabh Mehta 9 anni fa
parent
commit
3b434035da
1 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. +4
    -2
      frappe/templates/includes/comments/comments.html

+ 4
- 2
frappe/templates/includes/comments/comments.html Vedi 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() {


Caricamento…
Annulla
Salva