compose: Add brief comments documenting the modules.

This commit is contained in:
Tim Abbott
2023-04-06 19:58:17 -07:00
parent 0c706aeafc
commit f4dc5afe82
4 changed files with 11 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
/* Main compose box module for sending messages. */
import autosize from "autosize"; import autosize from "autosize";
import $ from "jquery"; import $ from "jquery";
import _ from "lodash"; import _ from "lodash";

View File

@@ -1,3 +1,5 @@
/* Module primarily for opening/closing the compose box. */
import autosize from "autosize"; import autosize from "autosize";
import $ from "jquery"; import $ from "jquery";

View File

@@ -1,3 +1,5 @@
/* Compose box module responsible for the message's recipient */
import $ from "jquery"; import $ from "jquery";
import _ from "lodash"; import _ from "lodash";

View File

@@ -1,3 +1,6 @@
/* Compose box module responsible for manipulating the compose box
textarea correctly. */
import autosize from "autosize"; import autosize from "autosize";
import $ from "jquery"; import $ from "jquery";
import {insert, replace, set, wrapSelection} from "text-field-edit"; 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() { export function hide_compose_spinner() {
compose_spinner_visible = false; compose_spinner_visible = false;
$("#compose-send-button .loader").hide(); $("#compose-send-button .loader").hide();