diff options
author | Sarven Capadisli <csarven@status.net> | 2010-03-16 20:53:49 +0100 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2010-03-25 21:46:49 +0100 |
commit | f4339ddb7d5ab6ae7a2ab78562990da1fcc2a8bd (patch) | |
tree | 0aa20df5bf0cd66df442206e7ebd09aedc3fe932 /js | |
parent | 56deca63d0d73b965bc7dba11ef025a7c1ad3234 (diff) |
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.
Diffstat (limited to 'js')
-rw-r--r-- | js/util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/util.js b/js/util.js index 3efda0d7b..2e0f6e57b 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(); } }, |