use URLs for linking to comments

This commit is contained in:
Shish
2012-03-13 16:04:50 +00:00
parent e31b6af28b
commit b4fb667eaa
2 changed files with 3 additions and 3 deletions

View File

@ -164,9 +164,9 @@ function deleteCookie( name, path, domain ) {
";expires=Thu, 01-Jan-1970 00:00:01 GMT";
}
function replyTo(imageId, commentId) {
function replyTo(imageId, commentId, userId) {
var box = $("#comment_on_"+imageId);
var text = ">>"+imageId+"#c"+commentId+": ";
var text = "[url=site://post/view/"+imageId+"#c"+commentId+"]@"+userId+"[/url]: ";
box.focus();
box.val(box.val() + text);