summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-10-30 15:41:52 +0000
committerSarven Capadisli <csarven@status.net>2009-10-30 15:41:52 +0000
commit873ecb81e8e147ccf05c351de795798ec4d3ed58 (patch)
treeb34d590efb064c133dc4ee3571ce3fed87eed145
parentcb8160dd8c7dc3ecfa0df3da1f6d5e9f3a6abcd0 (diff)
Remove attachment view after XHR notice submit
-rw-r--r--js/util.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/util.js b/js/util.js
index 3d33b18f9..638f8e6d1 100644
--- a/js/util.js
+++ b/js/util.js
@@ -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();
}
},