If ElementData is set on the notice form, use the existing MaxLength

This commit is contained in:
Sarven Capadisli 2009-12-10 14:52:05 +01:00
parent 61023d42d3
commit c0aad854f7
1 changed files with 3 additions and 0 deletions

View File

@ -77,6 +77,9 @@ var SN = { // StatusNet
SN.U.SubmitOnReturn(e, form);
});
}
else {
$('#'+form_id+' #'+SN.C.S.NoticeTextCount).text(jQuery.data(form[0], 'ElementData').MaxLength);
}
if ($('body')[0].id != 'conversation') {
$('#'+form_id+' textarea').focus();