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

@@ -23,9 +23,9 @@ export function down(with_centering) {
if (with_centering) {
// At the last message, scroll to the bottom so we have
// lots of nice whitespace for new messages coming in.
const current_msg_table = rows.get_table(message_lists.current.table_name);
const $current_msg_table = rows.get_table(message_lists.current.table_name);
message_viewport.scrollTop(
current_msg_table.safeOuterHeight(true) - message_viewport.height() * 0.1,
$current_msg_table.safeOuterHeight(true) - message_viewport.height() * 0.1,
);
unread_ops.process_scrolled_to_bottom();
}
@@ -118,9 +118,9 @@ export function page_down() {
}
export function scroll_to_selected() {
const selected_row = message_lists.current.selected_row();
if (selected_row && selected_row.length !== 0) {
message_viewport.recenter_view(selected_row);
const $selected_row = message_lists.current.selected_row();
if ($selected_row && $selected_row.length !== 0) {
message_viewport.recenter_view($selected_row);
}
}