summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-06-23 11:29:13 -0700
committerZach Copley <zach@status.net>2010-06-23 11:29:13 -0700
commit72e486a3226c9101f33bd86f953dbb9650c19fd1 (patch)
tree72339f20f5a4684984b2c26589573e9bc960fbda /js
parentb59aba9543b46c4d9e31dbff2c490a9b03539abe (diff)
Fix for ticket http://status.net/open-source/issues/2380 "Autofocus
shouldn't override scroll" -- Thanks @michaeltwofish!
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 1320d11b4..29b33097b 100644
--- a/js/util.js
+++ b/js/util.js
@@ -84,7 +84,7 @@ var SN = { // StatusNet
form.find('#'+SN.C.S.NoticeTextCount).text(jQuery.data(form[0], 'ElementData').MaxLength);
}
- if ($('body')[0].id != 'conversation' && window.location.hash.length === 0) {
+ if ($('body')[0].id != 'conversation' && window.location.hash.length === 0 && $(window).scrollTop() == 0) {
form.find('textarea').focus();
}
},