summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/util.js')
-rw-r--r--js/util.js9
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();
+ }
+ }