mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 19:31:58 +00:00
Eliminate useless code. You can't click into the box when it's closed.
(imported from commit 67268d7d156ffede2c9ab6a3ec94ab04c3876118)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user