mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
js: Prefix jQuery object variable names with $.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user