compose: Extract clear_textarea().

This commit is contained in:
Steve Howell 2017-04-14 06:09:13 -07:00 committed by Tim Abbott
parent 49bd330304
commit ec8bd077d1
1 changed files with 5 additions and 1 deletions

View File

@ -111,11 +111,15 @@ function clear_invites() {
$("#compose_invite_users").empty();
}
exports.clear_textarea = function () {
$("#compose").find('input[type=text], textarea').val('');
};
function clear_box() {
clear_invites();
clear_all_everyone_warnings();
user_acknowledged_all_everyone = undefined;
$("#compose").find('input[type=text], textarea').val('');
exports.clear_textarea();
$("#new_message_content").removeData("draft-id");
exports.autosize_textarea();
$("#send-status").hide(0);