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.
This commit is contained in:
Sarven Capadisli 2010-03-16 20:53:49 +01:00
parent 56deca63d0
commit f4339ddb7d

View File

@ -86,7 +86,7 @@ var SN = { // StatusNet
$('#'+form_id+' #'+SN.C.S.NoticeTextCount).text(jQuery.data(form[0], 'ElementData').MaxLength); $('#'+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(); $('#'+form_id+' textarea').focus();
} }
}, },