refactor: new message content -> compose textarea.

This commit is contained in:
Tommy Ip
2017-11-26 19:37:44 +00:00
committed by Tim Abbott
parent e92a8ac8ee
commit 6e22847548
23 changed files with 128 additions and 128 deletions

View File

@@ -74,7 +74,7 @@ exports.uploadFinished = function (i, file, response) {
if (response.uri === undefined) {
return;
}
var textbox = $("#new_message_content");
var textbox = $("#compose-textarea");
var split_uri = response.uri.split("/");
var filename = split_uri[split_uri.length - 1];
// Urgh, yet another hack to make sure we're "composing"
@@ -120,7 +120,7 @@ exports.initialize = function () {
error: exports.uploadError,
uploadFinished: exports.uploadFinished,
rawDrop: function (contents) {
var textbox = $("#new_message_content");
var textbox = $("#compose-textarea");
if (!compose_state.composing()) {
compose_actions.start('stream');
}