move ext-specific js into that ext

This commit is contained in:
Shish
2018-11-05 22:59:53 +00:00
parent b2f10ea5ab
commit 9d3f4ea4b3
7 changed files with 65 additions and 82 deletions

8
ext/comment/script.js Normal file
View File

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