mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
Add a close button to the compose dialog (since users may not know to use Esc)
(imported from commit 47dca0b2c76449be1d885b74c1cf6b036aa459c7)
This commit is contained in:
@@ -165,6 +165,8 @@ exports.start = function (msg_type, opts) {
|
||||
return;
|
||||
}
|
||||
|
||||
$("#compose_close").show();
|
||||
|
||||
var default_opts = {
|
||||
message_type: msg_type,
|
||||
stream: '',
|
||||
@@ -232,6 +234,7 @@ function abort_xhr () {
|
||||
}
|
||||
|
||||
exports.cancel = function () {
|
||||
$("#compose_close").hide();
|
||||
compose.clear();
|
||||
compose.hide();
|
||||
abort_xhr();
|
||||
|
||||
Reference in New Issue
Block a user