mirror of https://github.com/zulip/zulip.git
stream header colorblock: Remove unnecessary `find`.
This commit is contained in:
parent
f9bf688c9e
commit
0e13134be2
|
@ -283,8 +283,8 @@ export function start(msg_type, opts) {
|
|||
}
|
||||
|
||||
compose_recipient.compose_recipient_widget.render(opts.stream);
|
||||
const $stream_header_colorblock = $("#compose_recipient_selection_dropdown").find(
|
||||
".stream_header_colorblock",
|
||||
const $stream_header_colorblock = $(
|
||||
"#compose_recipient_selection_dropdown .stream_header_colorblock",
|
||||
);
|
||||
stream_bar.decorate(opts.stream, $stream_header_colorblock);
|
||||
|
||||
|
|
|
@ -154,8 +154,8 @@ export function on_compose_select_recipient_update(new_value) {
|
|||
$("#private_message_recipient").trigger("focus").trigger("select");
|
||||
}
|
||||
} else {
|
||||
const $stream_header_colorblock = $("#compose_recipient_selection_dropdown").find(
|
||||
".stream_header_colorblock",
|
||||
const $stream_header_colorblock = $(
|
||||
"#compose_recipient_selection_dropdown .stream_header_colorblock",
|
||||
);
|
||||
stream_bar.decorate(new_value, $stream_header_colorblock);
|
||||
if (message_type === "private") {
|
||||
|
|
Loading…
Reference in New Issue