]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Clear/reset the XHR notice form on pages where there is no timeline
authorSarven Capadisli <csarven@status.net>
Wed, 2 Dec 2009 22:16:27 +0000 (23:16 +0100)
committerSarven Capadisli <csarven@status.net>
Wed, 2 Dec 2009 22:16:27 +0000 (23:16 +0100)
js/util.js

index 3c9c3986a556b91550bdc3024be94358384fad58..66f5f9f443bee0a6e0ad6d085192f02aa22f0fe8 100644 (file)
@@ -243,12 +243,12 @@ var SN = { // StatusNet
                                     SN.U.FormXHR($('#'+notice.id+' .form_favor'));
                                  }
                             }
-                            $('#'+form_id+' #'+SN.C.S.NoticeDataText).val('');
-                            $('#'+form_id+' #'+SN.C.S.NoticeDataAttach).val('');
-                            $('#'+form_id+' #'+SN.C.S.NoticeInReplyTo).val('');
-                            $('#'+form_id+' #'+SN.C.S.NoticeDataAttachSelected).remove();
-                            SN.U.FormNoticeEnhancements($('#'+form_id));
                         }
+                        $('#'+form_id+' #'+SN.C.S.NoticeDataText).val('');
+                        $('#'+form_id+' #'+SN.C.S.NoticeDataAttach).val('');
+                        $('#'+form_id+' #'+SN.C.S.NoticeInReplyTo).val('');
+                        $('#'+form_id+' #'+SN.C.S.NoticeDataAttachSelected).remove();
+                        SN.U.FormNoticeEnhancements($('#'+form_id));
                     }
                 },
                 complete: function(xhr, textStatus) {