shouldn't override scroll" -- Thanks @michaeltwofish!
This commit is contained in:
Zach Copley 2010-06-23 11:29:13 -07:00
parent b59aba9543
commit 72e486a322
1 changed files with 1 additions and 1 deletions

View File

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