mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 10:03:56 +00:00
message_list: Hide the message control icons when editing.
This avoids a bunch of potential confusion around users trying to interact with these UI in situations that don't make sense. (E.g. showing a menu to start editing the message when the menu is already open). Fixes #3802.
This commit is contained in:
committed by
Tim Abbott
parent
104c6ea3f3
commit
830dd68e45
@@ -293,13 +293,13 @@ exports.MessageList.prototype = {
|
||||
|
||||
show_edit_message: function MessageList_show_edit_message(row, edit_obj) {
|
||||
row.find(".message_edit_form").empty().append(edit_obj.form);
|
||||
row.find(".message_content, .status-message").hide();
|
||||
row.find(".message_content, .status-message, .message_controls").hide();
|
||||
row.find(".message_edit").css("display", "block");
|
||||
row.find(".message_edit_content").autosize();
|
||||
},
|
||||
|
||||
hide_edit_message: function MessageList_hide_edit_message(row) {
|
||||
row.find(".message_content, .status-message").show();
|
||||
row.find(".message_content, .status-message, .message_controls").show();
|
||||
row.find(".message_edit").hide();
|
||||
row.trigger("mouseleave");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user