summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorSarven Capadisli <csarven@status.net>2009-12-07 10:08:07 +0000
committerSarven Capadisli <csarven@status.net>2009-12-07 10:08:07 +0000
commitc9b6a90c99691089e8552fb3094e6432766233ed (patch)
tree522e0b68cb24d712ef067481d5303d90fff435e8 /js
parentaf0f905e2487bd00a0c888f1ddc704fb8ce44731 (diff)
Use .resetForm() instead of manually setting notice form's control values to null
Diffstat (limited to 'js')
-rw-r--r--js/util.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/util.js b/js/util.js
index 259d56659..c6e546bd0 100644
--- a/js/util.js
+++ b/js/util.js
@@ -249,9 +249,7 @@ var SN = { // StatusNet
form.append('<p class="success">'+result_title+'</p>');
}
}
- $('#'+form_id+' #'+SN.C.S.NoticeDataText).val('');
- $('#'+form_id+' #'+SN.C.S.NoticeDataAttach).val('');
- $('#'+form_id+' #'+SN.C.S.NoticeInReplyTo).val('');
+ $('#'+form_id).resetForm();
$('#'+form_id+' #'+SN.C.S.NoticeDataAttachSelected).remove();
SN.U.FormNoticeEnhancements($('#'+form_id));
}