Clear/reset the XHR notice form on pages where there is no timeline

This commit is contained in:
Sarven Capadisli 2009-12-02 23:16:27 +01:00
parent 7b550f386a
commit d318976342
1 changed files with 5 additions and 5 deletions

View File

@ -243,13 +243,13 @@ var SN = { // StatusNet
SN.U.FormXHR($('#'+notice.id+' .form_favor')); SN.U.FormXHR($('#'+notice.id+' .form_favor'));
} }
} }
}
$('#'+form_id+' #'+SN.C.S.NoticeDataText).val(''); $('#'+form_id+' #'+SN.C.S.NoticeDataText).val('');
$('#'+form_id+' #'+SN.C.S.NoticeDataAttach).val(''); $('#'+form_id+' #'+SN.C.S.NoticeDataAttach).val('');
$('#'+form_id+' #'+SN.C.S.NoticeInReplyTo).val(''); $('#'+form_id+' #'+SN.C.S.NoticeInReplyTo).val('');
$('#'+form_id+' #'+SN.C.S.NoticeDataAttachSelected).remove(); $('#'+form_id+' #'+SN.C.S.NoticeDataAttachSelected).remove();
SN.U.FormNoticeEnhancements($('#'+form_id)); SN.U.FormNoticeEnhancements($('#'+form_id));
} }
}
}, },
complete: function(xhr, textStatus) { complete: function(xhr, textStatus) {
form.removeClass(SN.C.S.Processing); form.removeClass(SN.C.S.Processing);