forked from GNUsocial/gnu-social
Remove attachment view after XHR notice submit
This commit is contained in:
parent
cb8160dd8c
commit
873ecb81e8
@ -223,7 +223,7 @@ var SN = { // StatusNet
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
notice = $('li', data)[0];
|
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_value = $('#'+SN.C.S.NoticeInReplyTo).val();
|
||||||
var notice_irt = '#notices_primary #notice-'+notice_irt_value;
|
var notice_irt = '#notices_primary #notice-'+notice_irt_value;
|
||||||
if($('body')[0].id == 'conversation') {
|
if($('body')[0].id == 'conversation') {
|
||||||
@ -244,6 +244,7 @@ var SN = { // StatusNet
|
|||||||
$('#'+SN.C.S.NoticeDataText).val('');
|
$('#'+SN.C.S.NoticeDataText).val('');
|
||||||
$('#'+SN.C.S.NoticeDataAttach).val('');
|
$('#'+SN.C.S.NoticeDataAttach).val('');
|
||||||
$('#'+SN.C.S.NoticeInReplyTo).val('');
|
$('#'+SN.C.S.NoticeInReplyTo).val('');
|
||||||
|
$('#'+SN.C.S.NoticeDataAttachSelected).remove();
|
||||||
SN.U.Counter();
|
SN.U.Counter();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user