diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2008-10-20 13:02:45 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2008-10-20 13:02:45 -0400 |
commit | f2e3021b59f3661b3c900b06600a580b8970df2f (patch) | |
tree | 60a0c01fa990a7fc3b44571f93961c612868e88e /js | |
parent | b2f0ad1cccc4bebbf264c4ab61a37173c9a565cc (diff) |
try to make replies point to the clicked-on notice
darcs-hash:20081020170245-5ed1f-b84f63d9d9b589bd18f97924db547e348beb6647.gz
Diffstat (limited to 'js')
-rw-r--r-- | js/util.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/util.js b/js/util.js index fe3ed74dc..0055c35df 100644 --- a/js/util.js +++ b/js/util.js @@ -88,7 +88,7 @@ $(document).ready(function(){ $("form.disfavor").each(addAjaxHidden); }); -function doreply(nick) { +function doreply(nick,id) { rgx_username = /^[0-9a-zA-Z\-_.]*$/; if (nick.match(rgx_username)) { replyto = "@" + nick + " "; @@ -97,6 +97,9 @@ function doreply(nick) { $("#status_textarea").focus(); return false; } + if (id) { + $("#inreplyto").val(id); + } } return true; } |