mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
compose: Add brief comments documenting the modules.
This commit is contained in:
@@ -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";
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user