mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 11:52:01 +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 () {
|
$(function () {
|
||||||
$("#new_message_content").autosize();
|
$("#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
|
// Run a feature test and decide whether to display
|
||||||
// the "Attach files" button
|
// the "Attach files" button
|
||||||
if (window.XMLHttpRequest && (new XMLHttpRequest()).upload) {
|
if (window.XMLHttpRequest && (new XMLHttpRequest()).upload) {
|
||||||
|
|||||||
Reference in New Issue
Block a user