From d3189763422a87f9f977646ad57e7d4a2ea29026 Mon Sep 17 00:00:00 2001 From: Sarven Capadisli Date: Wed, 2 Dec 2009 23:16:27 +0100 Subject: Clear/reset the XHR notice form on pages where there is no timeline --- js/util.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'js') diff --git a/js/util.js b/js/util.js index 3c9c3986a..66f5f9f44 100644 --- a/js/util.js +++ b/js/util.js @@ -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) { -- cgit v1.2.3-54-g00ecf