mirror of
https://github.com/openvk/openvk
synced 2024-11-14 11:09:12 +03:00
4d471481b6
Please excuse me, it happened by accident!!
12 lines
520 B
JavaScript
12 lines
520 B
JavaScript
u(".comment-reply").on("click", function(e) {
|
|
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)
|
|
|
|
inputbox.text("[" + (fromGroup ? "club" : "id") + authorId + "|" + authorNm + "], ");
|
|
inputbox.trigger("focusin");
|
|
});
|