web: Remove inappropriate $ prefix from HTML variables.

Only jQuery object variables should be prefixed with $.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2023-03-17 10:53:24 -07:00
committed by Anders Kaseorg
parent fa6daee4e1
commit d4cc50c468
3 changed files with 6 additions and 6 deletions

View File

@@ -234,7 +234,7 @@ function show_wildcard_warnings(stream_id) {
const $compose_banner_area = $("#compose_banners");
const classname = compose_banner.CLASSNAMES.wildcard_warning;
const $wildcard_template = render_wildcard_warning({
const wildcard_template = render_wildcard_warning({
banner_type: compose_banner.WARNING,
subscriber_count,
stream_name: compose_state.stream_name(),
@@ -246,7 +246,7 @@ function show_wildcard_warnings(stream_id) {
// only show one error for any number of @all or @everyone mentions
if ($(`#compose_banners .${classname}`).length === 0) {
$compose_banner_area.append($wildcard_template);
$compose_banner_area.append(wildcard_template);
}
user_acknowledged_wildcard = false;