summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-06-29 08:53:05 -0700
committerBrion Vibber <brion@pobox.com>2010-06-29 08:53:05 -0700
commitc038164c0f41ba5c33f578f395c9fede80d96db8 (patch)
tree1452f6e5ae5786048a5a2835275c553e80c60462 /js/util.js
parent7b7f09195a8082c8e26e87f7deb8b1002b852689 (diff)
parent452123916d08354d11a198517cbc91980a113fcd (diff)
Merge branch '0.9.x' of gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'js/util.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();
}
},