2021-10-12 14:18:07 +03:00
|
|
|
u(".comment-reply").on("click", function(e) {
|
2021-12-04 23:23:57 +03:00
|
|
|
let inputbox = u("#write textarea");
|
|
|
|
let comment = u(e.target).closest(".post");
|
|
|
|
let authorId = comment.data("owner-id");
|
|
|
|
let authorNm = u(".post-author > a > b", comment.first()).text().trim();
|
|
|
|
let fromGroup = Boolean(comment.data("from-group"));
|
|
|
|
let postId = comment.data("post-id");
|
|
|
|
console.log(postId)
|
2021-10-12 14:18:07 +03:00
|
|
|
|
2021-12-04 23:27:42 +03:00
|
|
|
inputbox.text("[" + (fromGroup ? "club" : "id") + authorId + "|" + authorNm + "], ");
|
2021-10-12 14:18:07 +03:00
|
|
|
inputbox.trigger("focusin");
|
|
|
|
});
|