]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Use .resetForm() instead of manually setting notice form's control values to null
authorSarven Capadisli <csarven@status.net>
Mon, 7 Dec 2009 10:08:07 +0000 (10:08 +0000)
committerSarven Capadisli <csarven@status.net>
Mon, 7 Dec 2009 10:08:07 +0000 (10:08 +0000)
js/util.js

index 259d5665960e0073e8b6a2278f3768bf50cb4871..c6e546bd0ecfb73186c3f3d5e40753bb6e08f119 100644 (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));
                     }