From ccd14e38c58faed8e0e857ff8a503ad5f59333b8 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 30 Dec 2023 13:47:02 +0000 Subject: [PATCH] [comment] reduce jquery --- ext/comment/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/comment/script.js b/ext/comment/script.js index 47023be7..a6f15345 100644 --- a/ext/comment/script.js +++ b/ext/comment/script.js @@ -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(); }