mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
Move reload in progress check from compose.show to compose.start
(imported from commit 8b84b24ca50a3bd149d67b868dd94908c0354022)
This commit is contained in:
@@ -4,9 +4,6 @@ var exports = {};
|
||||
var is_composing_message = false;
|
||||
|
||||
function show(tabname, focus_area) {
|
||||
if (reload.is_in_progress()) {
|
||||
return;
|
||||
}
|
||||
if (tabname === "stream") {
|
||||
$('#private-message').hide();
|
||||
$('#stream-message').show();
|
||||
@@ -27,6 +24,10 @@ function show(tabname, focus_area) {
|
||||
}
|
||||
|
||||
exports.start = function (msg_type, opts) {
|
||||
if (reload.is_in_progress()) {
|
||||
return;
|
||||
}
|
||||
|
||||
opts = $.extend({ message_type: msg_type,
|
||||
stream: '',
|
||||
subject: '',
|
||||
|
||||
Reference in New Issue
Block a user