compose: Extract autosize_message_content().

This commit is contained in:
Steve Howell
2017-04-13 14:37:24 -07:00
committed by Tim Abbott
parent 519dcdb750
commit 79ff32a01e

View File

@@ -229,8 +229,12 @@ function get_focus_area(msg_type, opts) {
// Export for testing
exports._get_focus_area = get_focus_area;
exports.start = function (msg_type, opts) {
exports.autosize_message_content = function () {
$("#new_message_content").autosize();
};
exports.start = function (msg_type, opts) {
exports.autosize_message_content();
if (reload.is_in_progress()) {
return;