From 72e486a3226c9101f33bd86f953dbb9650c19fd1 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 23 Jun 2010 11:29:13 -0700 Subject: [PATCH] Fix for ticket http://status.net/open-source/issues/2380 "Autofocus shouldn't override scroll" -- Thanks @michaeltwofish! --- js/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/util.js b/js/util.js index 1320d11b4b..29b33097b1 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(); } }, -- 2.39.5