[comment] reduce jquery

This commit is contained in:
Shish 2023-12-30 13:47:02 +00:00
parent 410bddd24e
commit ccd14e38c5

View file

@ -1,8 +1,8 @@
function replyTo(imageId, commentId, userId) {
var box = $("#comment_on_"+imageId);
var box = document.getElementById("comment_on_"+imageId);
var text = "[url=site://post/view/"+imageId+"#c"+commentId+"]@"+userId+"[/url]: ";
box.focus();
box.val(box.val() + text);
box.value += text;
$("#c"+commentId).highlight();
}