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
0be70e390b
commit
e8c7873b79
@ -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();
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user