summaryrefslogtreecommitdiff
path: root/js/util.js
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-12-02 23:25:17 +0100
committerSarven Capadisli <csarven@status.net>2009-12-02 23:25:17 +0100
commit5963c140d67fae3a7cb432c8cdf8080765e0ed60 (patch)
tree4715c03fb2e99de62a12be5c109e2a203e2e266a /js/util.js
parentd3189763422a87f9f977646ad57e7d4a2ea29026 (diff)
Revert "Clear/reset the XHR notice form on pages where there is no timeline"
This reverts commit d3189763422a87f9f977646ad57e7d4a2ea29026.
Diffstat (limited to 'js/util.js')
-rw-r--r--js/util.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/util.js b/js/util.js
index 66f5f9f44..3c9c3986a 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) {