Use .resetForm() instead of manually setting notice form's control values to null

This commit is contained in:
Sarven Capadisli 2009-12-07 10:08:07 +00:00
parent af0f905e24
commit c9b6a90c99

View File

@ -249,9 +249,7 @@ var SN = { // StatusNet
form.append('<p class="success">'+result_title+'</p>');
}
}
$('#'+form_id+' #'+SN.C.S.NoticeDataText).val('');
$('#'+form_id+' #'+SN.C.S.NoticeDataAttach).val('');
$('#'+form_id+' #'+SN.C.S.NoticeInReplyTo).val('');
$('#'+form_id).resetForm();
$('#'+form_id+' #'+SN.C.S.NoticeDataAttachSelected).remove();
SN.U.FormNoticeEnhancements($('#'+form_id));
}