js function for inserting comment links

This commit is contained in:
Shish 2012-02-06 14:41:36 +00:00
parent e38f9e720f
commit b20fd1b3e3

View File

@ -164,3 +164,10 @@ function deleteCookie( name, path, domain ) {
";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}
function replyTo(imageId, commentId) {
var box = $("#comment_on_"+imageId);
var text = ">>"+imageId+"#"+commentId+": ";
box.focus();
box.val(box.val() + text);
}