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 0be70e390b
commit e8c7873b79

View File

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