mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +00:00
compose: Rename recipient selector classes to be more descriptive.
This commit is contained in:
@@ -39,8 +39,8 @@ function hide_box() {
|
||||
// This is the main hook for saving drafts when closing the compose box.
|
||||
drafts.update_draft();
|
||||
blur_compose_inputs();
|
||||
$("#stream-message").hide();
|
||||
$("#private-message").hide();
|
||||
$("#compose-stream-recipient").hide();
|
||||
$("#compose-private-recipient").hide();
|
||||
$(".new_message_textarea").css("min-height", "");
|
||||
compose_fade.clear_compose();
|
||||
$(".message_comp").hide();
|
||||
@@ -80,13 +80,13 @@ export function set_focus(msg_type, opts) {
|
||||
|
||||
function show_compose_box(msg_type, opts) {
|
||||
if (msg_type === "stream") {
|
||||
$("#private-message").hide();
|
||||
$("#stream-message").show();
|
||||
$("#compose-private-recipient").hide();
|
||||
$("#compose-stream-recipient").show();
|
||||
$("#stream_toggle").addClass("active");
|
||||
$("#private_message_toggle").removeClass("active");
|
||||
} else {
|
||||
$("#private-message").show();
|
||||
$("#stream-message").hide();
|
||||
$("#compose-private-recipient").show();
|
||||
$("#compose-stream-recipient").hide();
|
||||
$("#stream_toggle").removeClass("active");
|
||||
$("#private_message_toggle").addClass("active");
|
||||
}
|
||||
@@ -199,7 +199,7 @@ export function complete_starting_tasks(msg_type, opts) {
|
||||
|
||||
maybe_scroll_up_selected_message();
|
||||
compose_fade.start_compose(msg_type);
|
||||
stream_bar.decorate(opts.stream, $("#stream-message .message_header_stream"), true);
|
||||
stream_bar.decorate(opts.stream, $("#compose-stream-recipient .message_header_stream"), true);
|
||||
$(document).trigger(new $.Event("compose_started.zulip", opts));
|
||||
update_placeholder_text();
|
||||
update_narrow_to_recipient_visibility();
|
||||
|
||||
Reference in New Issue
Block a user