js: Prefix jQuery object variable names with $.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-01-25 02:36:19 -08:00
parent f21842e920
commit f84a2c08d5
195 changed files with 4883 additions and 4835 deletions

View File

@@ -65,9 +65,9 @@ export function switch_to_light_theme() {
on_success(data) {
dark_theme.disable();
feedback_widget.show({
populate(container) {
populate($container) {
const rendered_msg = marked(data.msg).trim();
container.html(rendered_msg);
$container.html(rendered_msg);
},
on_undo() {
send({
@@ -87,9 +87,9 @@ export function switch_to_dark_theme() {
on_success(data) {
dark_theme.enable();
feedback_widget.show({
populate(container) {
populate($container) {
const rendered_msg = marked(data.msg).trim();
container.html(rendered_msg);
$container.html(rendered_msg);
},
on_undo() {
send({
@@ -109,9 +109,9 @@ export function enter_fluid_mode() {
on_success(data) {
scroll_bar.set_layout_width();
feedback_widget.show({
populate(container) {
populate($container) {
const rendered_msg = marked(data.msg).trim();
container.html(rendered_msg);
$container.html(rendered_msg);
},
on_undo() {
send({
@@ -131,9 +131,9 @@ export function enter_fixed_mode() {
on_success(data) {
scroll_bar.set_layout_width();
feedback_widget.show({
populate(container) {
populate($container) {
const rendered_msg = marked(data.msg).trim();
container.html(rendered_msg);
$container.html(rendered_msg);
},
on_undo() {
send({