replybutton.darc

Add a simple reply button to notices

darcs-hash:20080708112016-f7d30-321142883159fa91338754140ac4ea37e54bb746.gz
This commit is contained in:
mike
2008-07-08 07:20:16 -04:00
parent 99eaec8c89
commit 606297e453
5 changed files with 19 additions and 2 deletions

View File

@@ -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();
}
}