mirror of https://github.com/zulip/zulip.git
refactor: Extract compose.do_post_send_tasks().
This commit is contained in:
parent
b47bc0e082
commit
87ba752758
|
@ -309,11 +309,15 @@ exports.finish = function () {
|
|||
} else {
|
||||
exports.send_message();
|
||||
}
|
||||
exports.do_post_send_tasks();
|
||||
return true;
|
||||
};
|
||||
|
||||
exports.do_post_send_tasks = function () {
|
||||
exports.clear_preview_area();
|
||||
// TODO: Do we want to fire the event even if the send failed due
|
||||
// to a server-side error?
|
||||
$(document).trigger($.Event('compose_finished.zulip'));
|
||||
return true;
|
||||
};
|
||||
|
||||
exports.update_email = function (user_id, new_email) {
|
||||
|
|
Loading…
Reference in New Issue