compose: Extract expand_compose_box().

This commit is contained in:
Steve Howell
2017-04-13 14:39:34 -07:00
committed by Tim Abbott
parent 79ff32a01e
commit e73b56c7b5

View File

@@ -233,6 +233,12 @@ exports.autosize_message_content = function () {
$("#new_message_content").autosize();
};
exports.expand_compose_box = function () {
$("#compose_close").show();
$("#compose_controls").hide();
$('.message_comp').show();
};
exports.start = function (msg_type, opts) {
exports.autosize_message_content();
@@ -240,9 +246,7 @@ exports.start = function (msg_type, opts) {
return;
}
notifications.clear_compose_notifications();
$("#compose_close").show();
$("#compose_controls").hide();
$('.message_comp').show();
exports.expand_compose_box();
opts = fill_in_opts_from_current_narrowed_view(msg_type, opts);
// If we are invoked by a compose hotkey (c or C), do not assume that we know