mirror of
https://github.com/openvk/openvk
synced 2024-11-14 19:19:14 +03:00
129d415877
Resolves #148
9 lines
362 B
JavaScript
9 lines
362 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();
|
|
|
|
inputbox.text("[id" + authorId + "|" + authorNm + "], ");
|
|
inputbox.trigger("focusin");
|
|
});
|