mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
Focus on the right text box when you initiate a message edit.
(imported from commit ac55ec174ade75c0ebd987f934e3857dd3d94849)
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user