From b20fd1b3e3b9116be189f35933e1ba0432f2300b Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 6 Feb 2012 14:41:36 +0000 Subject: [PATCH] js function for inserting comment links --- lib/shimmie.js | 7 +++++++ 1 file changed, 7 insertions(+) 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); +}