From: Sarven Capadisli Date: Mon, 7 Dec 2009 10:08:07 +0000 (+0000) Subject: Use .resetForm() instead of manually setting notice form's control values to null X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c9b6a90c99691089e8552fb3094e6432766233ed;p=quix0rs-gnu-social.git Use .resetForm() instead of manually setting notice form's control values to null --- diff --git a/js/util.js b/js/util.js index 259d566596..c6e546bd0e 100644 --- a/js/util.js +++ b/js/util.js @@ -249,9 +249,7 @@ var SN = { // StatusNet form.append('

'+result_title+'

'); } } - $('#'+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)); }