Use .resetForm() instead of manually setting notice form's control values to null
This commit is contained in:
parent
af0f905e24
commit
c9b6a90c99
@ -249,9 +249,7 @@ var SN = { // StatusNet
|
|||||||
form.append('<p class="success">'+result_title+'</p>');
|
form.append('<p class="success">'+result_title+'</p>');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$('#'+form_id+' #'+SN.C.S.NoticeDataText).val('');
|
$('#'+form_id).resetForm();
|
||||||
$('#'+form_id+' #'+SN.C.S.NoticeDataAttach).val('');
|
|
||||||
$('#'+form_id+' #'+SN.C.S.NoticeInReplyTo).val('');
|
|
||||||
$('#'+form_id+' #'+SN.C.S.NoticeDataAttachSelected).remove();
|
$('#'+form_id+' #'+SN.C.S.NoticeDataAttachSelected).remove();
|
||||||
SN.U.FormNoticeEnhancements($('#'+form_id));
|
SN.U.FormNoticeEnhancements($('#'+form_id));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user