[comment] reduce jquery
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
function replyTo(imageId, commentId, userId) {
|
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]: ";
|
var text = "[url=site://post/view/"+imageId+"#c"+commentId+"]@"+userId+"[/url]: ";
|
||||||
|
|
||||||
box.focus();
|
box.focus();
|
||||||
box.val(box.val() + text);
|
box.value += text;
|
||||||
$("#c"+commentId).highlight();
|
$("#c"+commentId).highlight();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user