]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Remove attachment view after XHR notice submit
authorSarven Capadisli <csarven@status.net>
Fri, 30 Oct 2009 15:41:52 +0000 (15:41 +0000)
committerSarven Capadisli <csarven@status.net>
Fri, 30 Oct 2009 15:41:52 +0000 (15:41 +0000)
js/util.js

index 3d33b18f9b66fa549ca46e5e65f3739ed82f13dc..638f8e6d134c485ccbd8e9c6a53dd60e5996ae75 100644 (file)
@@ -223,7 +223,7 @@ var SN = { // StatusNet
                         }
                         else {
                              notice = $('li', data)[0];
-                             if ($('#'+notice.id).length === 0) {
+                             if ($('#'+notice.id).length == 0) {
                                 var notice_irt_value = $('#'+SN.C.S.NoticeInReplyTo).val();
                                 var notice_irt = '#notices_primary #notice-'+notice_irt_value;
                                 if($('body')[0].id == 'conversation') {
@@ -244,6 +244,7 @@ var SN = { // StatusNet
                         $('#'+SN.C.S.NoticeDataText).val('');
                         $('#'+SN.C.S.NoticeDataAttach).val('');
                         $('#'+SN.C.S.NoticeInReplyTo).val('');
+                        $('#'+SN.C.S.NoticeDataAttachSelected).remove();
                         SN.U.Counter();
                     }
                 },