mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
compose: Update placeholder text depending on the narrow.
Change the `compose-textarea` placeholder text depending on the stream/topic or PM recipients that the message will be sent to. Resolves #12834.
This commit is contained in:
@@ -1074,6 +1074,16 @@ exports.initialize = function () {
|
||||
})
|
||||
);
|
||||
|
||||
$("#compose-textarea").focus(function () {
|
||||
var opts = {
|
||||
message_type: compose_state.get_message_type(),
|
||||
stream: $('#stream_message_recipient_stream').val(),
|
||||
topic: $('#stream_message_recipient_topic').val(),
|
||||
private_message_recipient: compose_pm_pill.get_emails(),
|
||||
};
|
||||
compose_actions.update_placeholder_text(opts);
|
||||
});
|
||||
|
||||
if (page_params.narrow !== undefined) {
|
||||
if (page_params.narrow_topic !== undefined) {
|
||||
compose_actions.start("stream", {topic: page_params.narrow_topic});
|
||||
|
||||
Reference in New Issue
Block a user