Move reload in progress check from compose.show to compose.start

(imported from commit 8b84b24ca50a3bd149d67b868dd94908c0354022)
This commit is contained in:
Zev Benjamin
2012-11-26 13:30:11 -05:00
parent 85e2bf9030
commit d8783cd0c0

View File

@@ -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: '',