summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/util.js b/js/util.js
index 7f7ca238d..a444e9ea1 100644
--- a/js/util.js
+++ b/js/util.js
@@ -58,7 +58,7 @@ function doreply(nick) {
rgx_username = /^[0-9a-zA-Z\-_.]*$/;
if (nick.match(rgx_username)) {
replyto = "@" + nick + " ";
- if ($("#status_textarea")) {
+ if ($("#status_textarea").length) {
$("#status_textarea").val(replyto);
$("#status_textarea").focus();
return false;