mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 08:56:10 +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;
|
var is_composing_message = false;
|
||||||
|
|
||||||
function show(tabname, focus_area) {
|
function show(tabname, focus_area) {
|
||||||
if (reload.is_in_progress()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (tabname === "stream") {
|
if (tabname === "stream") {
|
||||||
$('#private-message').hide();
|
$('#private-message').hide();
|
||||||
$('#stream-message').show();
|
$('#stream-message').show();
|
||||||
@@ -27,6 +24,10 @@ function show(tabname, focus_area) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
exports.start = function (msg_type, opts) {
|
exports.start = function (msg_type, opts) {
|
||||||
|
if (reload.is_in_progress()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
opts = $.extend({ message_type: msg_type,
|
opts = $.extend({ message_type: msg_type,
|
||||||
stream: '',
|
stream: '',
|
||||||
subject: '',
|
subject: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user