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:
parent
56deca63d0
commit
f4339ddb7d
@ -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();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user