From 606297e453ebb108ac8272ecea50ba6d6d0983b0 Mon Sep 17 00:00:00 2001 From: mike Date: Tue, 8 Jul 2008 07:20:16 -0400 Subject: replybutton.darc Add a simple reply button to notices darcs-hash:20080708112016-f7d30-321142883159fa91338754140ac4ea37e54bb746.gz --- js/util.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'js') 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(); + } + } -- cgit v1.2.3-54-g00ecf