mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
Move compose.start() calls out of click handlers.
For the two cases where narrowing should open the compose box, we now put that logic inside of narrow.js. (imported from commit 570e22e90c2f6d422ba71cce400c075f0b8adf51)
This commit is contained in:
@@ -117,22 +117,6 @@ exports.decorate_stream_bar = function (stream_name) {
|
||||
.addClass(stream_color.get_color_class(color));
|
||||
};
|
||||
|
||||
exports.update_recipient_on_narrow = function () {
|
||||
if (!compose.composing()) {
|
||||
return;
|
||||
}
|
||||
if (compose.message_content() !== "") {
|
||||
return;
|
||||
}
|
||||
var compose_opts = {};
|
||||
narrow.set_compose_defaults(compose_opts);
|
||||
if (compose_opts.stream) {
|
||||
compose.start("stream");
|
||||
} else {
|
||||
compose.start("private");
|
||||
}
|
||||
};
|
||||
|
||||
function update_fade () {
|
||||
if (!is_composing_message) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user