diff options
author | mike <mike@ice2o.com> | 2008-07-08 07:20:16 -0400 |
---|---|---|
committer | mike <mike@ice2o.com> | 2008-07-08 07:20:16 -0400 |
commit | 606297e453ebb108ac8272ecea50ba6d6d0983b0 (patch) | |
tree | 971ba5af5f19ed165988f645f1ae096c40df41e0 /js/util.js | |
parent | 99eaec8c899a1a6cff4f173bbf28b021ccb757a3 (diff) |
replybutton.darc
Add a simple reply button to notices
darcs-hash:20080708112016-f7d30-321142883159fa91338754140ac4ea37e54bb746.gz
Diffstat (limited to 'js/util.js')
-rw-r--r-- | js/util.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/util.js b/js/util.js index 4f2e7c724..50c311f99 100644 --- a/js/util.js +++ b/js/util.js @@ -19,5 +19,14 @@ $(document).ready(function(){ // run once in case there's something in there counter(); } + }); + function doreply(nick) { + rgx_username = /^[0-9a-zA-Z\-_.]*$/; + if (nick.match(rgx_username)) { + replyto = "@" + nick + " "; + document.getElementById("status_textarea").value=replyto; + document.getElementById("status_textarea").focus(); + } + } |