diff options
Diffstat (limited to 'js/util.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; } |