Always keep the compose box open after sending.

(Some cases are disabled on outside of staging still due to mix
protection concerns).

(imported from commit 26fcb95c055640ddd87c5df424990ebd865a336a)
This commit is contained in:
Jessica McKellar
2013-07-19 12:52:27 -04:00
parent f177147f7a
commit 12a37ed2b8
5 changed files with 2 additions and 10 deletions

View File

@@ -269,7 +269,6 @@ exports.cancel = function () {
}
$(document).trigger($.Event('compose_canceled.zephyr'));
respond_to_cursor = false;
respond_to_sent_message = false;
};
exports.empty_subject_placeholder = function () {
@@ -387,7 +386,7 @@ function send_message() {
else {
respond_to_cursor = false;
}
if (respond_to_sent_message && page_params.staging) {
if (page_params.staging) {
var new_msg = $.extend({replying_to_message: request}, request);
new_msg.content = "";
compose.start(new_msg.type, new_msg);
@@ -554,7 +553,6 @@ $(function () {
$("#new_message_content").focus(function (e) {
// If we click in the composebox, start up a new message
if (!compose.composing()) {
respond_to_sent_message = true;
if (narrow.narrowed_to_pms()) {
compose.start('private');
} else {
@@ -623,7 +621,6 @@ $(function () {
// Urgh, yet another hack to make sure we're "composing"
// when text gets added into the composebox.
if (!compose.composing()) {
respond_to_sent_message = true;
compose.start('stream');
}
if (i === -1) {
@@ -647,7 +644,6 @@ $(function () {
rawDrop: function (contents) {
var textbox = $("#new_message_content");
if (!compose.composing()) {
respond_to_sent_message = true;
compose.start('stream');
}
textbox.val(textbox.val() + contents);