compose: Rename placeholder update function for clarity.

This commit is contained in:
Karl Stolley
2025-02-06 09:42:22 -06:00
committed by Tim Abbott
parent 81b6879464
commit cae48d3faa
8 changed files with 15 additions and 13 deletions

View File

@@ -582,7 +582,7 @@ export function initialize() {
});
$("textarea#compose-textarea").on("focus", () => {
compose_recipient.update_placeholder_text();
compose_recipient.update_compose_area_placeholder_text();
if (narrow_state.narrowed_by_reply()) {
compose_notifications.maybe_show_one_time_non_interleaved_view_messages_fading_banner();
} else {
@@ -604,11 +604,11 @@ export function initialize() {
});
$("input#stream_message_recipient_topic").on("focus", () => {
compose_recipient.update_placeholder_text();
compose_recipient.update_compose_area_placeholder_text();
});
$("input#stream_message_recipient_topic").on("input", () => {
compose_recipient.update_placeholder_text();
compose_recipient.update_compose_area_placeholder_text();
});
$("body").on("click", ".formatting_button", function (e) {