Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
compose: Add brief comments documenting the modules.
Tim Abbottf4dc5afe82c3
diff --git a/web/src/compose.js b/web/src/compose.jsindex d203c176829..c1f8a11f9e1 100644--- a/web/src/compose.js+++ b/web/src/compose.js@@ -1,3 +1,5 @@+/* Main compose box module for sending messages. */+import autosize from "autosize";import $ from "jquery";import _ from "lodash";diff --git a/web/src/compose_actions.js b/web/src/compose_actions.jsindex ca0fd140cff..d0fce0468f6 100644--- a/web/src/compose_actions.js+++ b/web/src/compose_actions.js@@ -1,3 +1,5 @@+/* Module primarily for opening/closing the compose box. */+import autosize from "autosize";import $ from "jquery";diff --git a/web/src/compose_recipient.js b/web/src/compose_recipient.jsindex 8cc77a6e2eb..6ba2099fbf2 100644--- a/web/src/compose_recipient.js+++ b/web/src/compose_recipient.js@@ -1,3 +1,5 @@+/* Compose box module responsible for the message's recipient */+import $ from "jquery";import _ from "lodash";diff --git a/web/src/compose_ui.js b/web/src/compose_ui.jsindex 4f670d11aa6..9d0dd8f2c8c 100644--- a/web/src/compose_ui.js+++ b/web/src/compose_ui.js@@ -1,3 +1,6 @@+/* Compose box module responsible for manipulating the compose box+ textarea correctly. */+import autosize from "autosize";import $ from "jquery";import {insert, replace, set, wrapSelection} from "text-field-edit";@@ -474,6 +477,8 @@ export function format_text($textarea, type) {}}+/* TODO: This functions don't belong in this module, as they have+ * nothing to do with the compose textarea. */export function hide_compose_spinner() {compose_spinner_visible = false;$("#compose-send-button .loader").hide();