mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
message_list: More descriptive names for {show,hide}_topic_edit.
Clarify that the functions show and hide the topic edit in the recipient row, and do not apply to the message edit rows.
This commit is contained in:
committed by
Tim Abbott
parent
cd64d2dd27
commit
6f2d0c0288
@@ -309,7 +309,7 @@ exports.initialize = function () {
|
||||
});
|
||||
$("body").on("click", ".topic_edit_cancel", function (e) {
|
||||
const recipient_row = $(this).closest(".recipient_row");
|
||||
current_msg_list.hide_edit_topic(recipient_row);
|
||||
current_msg_list.hide_edit_topic_on_recipient_row(recipient_row);
|
||||
e.stopPropagation();
|
||||
popovers.hide_all();
|
||||
});
|
||||
|
||||
@@ -426,7 +426,7 @@ exports.start = function (row, edit_box_open_callback) {
|
||||
|
||||
exports.start_topic_edit = function (recipient_row) {
|
||||
const form = $(render_topic_edit_form());
|
||||
current_msg_list.show_edit_topic(recipient_row, form);
|
||||
current_msg_list.show_edit_topic_on_recipient_row(recipient_row, form);
|
||||
form.keydown(_.partial(handle_edit_keydown, true));
|
||||
const msg_id = rows.id_for_recipient_row(recipient_row);
|
||||
const message = current_msg_list.get(msg_id);
|
||||
@@ -461,7 +461,7 @@ exports.end = function (row) {
|
||||
current_msg_list.hide_edit_message(row);
|
||||
}
|
||||
if (row !== undefined) {
|
||||
current_msg_list.hide_edit_topic(row);
|
||||
current_msg_list.hide_edit_topic_on_recipient_row(row);
|
||||
}
|
||||
condense.show_message_expander(row);
|
||||
row.find(".message_reactions").show();
|
||||
|
||||
@@ -316,7 +316,7 @@ exports.MessageList.prototype = {
|
||||
row.trigger("mouseleave");
|
||||
},
|
||||
|
||||
show_edit_topic: function MessageList_show_edit_topic(recipient_row, form) {
|
||||
show_edit_topic_on_recipient_row: function (recipient_row, form) {
|
||||
recipient_row.find(".topic_edit_form").empty().append(form);
|
||||
recipient_row.find('.on_hover_topic_edit').hide();
|
||||
recipient_row.find('.edit_content_button').hide();
|
||||
@@ -324,7 +324,7 @@ exports.MessageList.prototype = {
|
||||
recipient_row.find(".topic_edit").show();
|
||||
},
|
||||
|
||||
hide_edit_topic: function MessageList_hide_edit_topic(recipient_row) {
|
||||
hide_edit_topic_on_recipient_row: function (recipient_row) {
|
||||
recipient_row.find(".stream_topic").show();
|
||||
recipient_row.find('.on_hover_topic_edit').show();
|
||||
recipient_row.find('.edit_content_button').show();
|
||||
|
||||
Reference in New Issue
Block a user