From: Sarven Capadisli Date: Tue, 16 Mar 2010 19:53:49 +0000 (+0100) Subject: Added extra condition to focusing on notice form on page load. If the X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e8c7873b79b73d983b6222869598a6fdfaec674f;p=quix0rs-gnu-social.git Added extra condition to focusing on notice form on page load. If the window location contains a fragument identifier, it will skip focus and do what the UA does natively. --- diff --git a/js/util.js b/js/util.js index 3efda0d7b9..2e0f6e57bc 100644 --- a/js/util.js +++ b/js/util.js @@ -86,7 +86,7 @@ var SN = { // StatusNet $('#'+form_id+' #'+SN.C.S.NoticeTextCount).text(jQuery.data(form[0], 'ElementData').MaxLength); } - if ($('body')[0].id != 'conversation') { + if ($('body')[0].id != 'conversation' && window.location.hash.length === 0) { $('#'+form_id+' textarea').focus(); } },