Eliminate useless code. You can't click into the box when it's closed.

(imported from commit 67268d7d156ffede2c9ab6a3ec94ab04c3876118)
This commit is contained in:
Jeff Arnold
2013-10-29 16:34:17 -04:00
parent 7a9e3ac90f
commit a1c0590043

View File

@@ -595,18 +595,6 @@ exports.validate = function () {
$(function () {
$("#new_message_content").autosize();
$("#new_message_content").focus(function (e) {
// If we click in the composebox, start up a new message
if (!compose.composing()) {
if (narrow.narrowed_to_pms()) {
compose.start('private');
} else {
compose.start('stream');
}
e.stopPropagation();
}
});
// Run a feature test and decide whether to display
// the "Attach files" button
if (window.XMLHttpRequest && (new XMLHttpRequest()).upload) {