diff --git a/lib/shimmie.js b/lib/shimmie.js index 258d592b..ae4bc7aa 100644 --- a/lib/shimmie.js +++ b/lib/shimmie.js @@ -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); +}