mirror of https://github.com/zulip/zulip.git
message_edit: Remove unused topic edit code.
`message_edit_topic_propagate` is only used in the template for
moving messages, separate from the message edit template, and
`message_edit_topic` doesn't show up anywhere anymore. Editing
the topic of a message used to be part of the message edit file,
and was removed in 0fc19732bc (diff-c68d68d71e21a4d22f39212a43e4f66ecc774bd17109963fe017d9878aace9bf)
This commit is contained in:
parent
73029c8348
commit
b0c90c0ba2
|
@ -364,18 +364,6 @@ function handle_message_row_edit_keydown(e) {
|
|||
composebox_typeahead.handle_enter($(e.target), e);
|
||||
return;
|
||||
}
|
||||
} else if ($(".typeahead:visible").length > 0) {
|
||||
// Accepting typeahead is handled by the typeahead library.
|
||||
return;
|
||||
} else if (
|
||||
$(e.target).hasClass("message_edit_topic") ||
|
||||
$(e.target).hasClass("message_edit_topic_propagate")
|
||||
) {
|
||||
// Enter should save the topic edit, as long as it's
|
||||
// not being used to accept typeahead.
|
||||
const $row = $(e.target).closest(".message_row");
|
||||
save_message_row_edit($row);
|
||||
e.stopPropagation();
|
||||
}
|
||||
} else if (e.key === "Escape") {
|
||||
end_if_focused_on_message_row_edit();
|
||||
|
|
Loading…
Reference in New Issue