Focus on the right text box when you initiate a message edit.

(imported from commit ac55ec174ade75c0ebd987f934e3857dd3d94849)
This commit is contained in:
Jessica McKellar
2013-07-17 10:24:54 -04:00
parent 5b84b2db87
commit fd0d8799ca

View File

@@ -49,6 +49,11 @@ function edit_message (row, raw_content) {
current_msg_list.show_edit_message(row, edit_obj); current_msg_list.show_edit_message(row, edit_obj);
currently_editing_messages[message.id] = edit_obj; currently_editing_messages[message.id] = edit_obj;
if (message.subject === compose.empty_subject_placeholder()) {
edit_row.find(".message_edit_subject").focus();
} else {
edit_row.find(".message_edit_content").focus();
}
} }
exports.start = function (row) { exports.start = function (row) {