recent_topics: Directly pass jquery element instead of event object.

This commit is contained in:
Aman Agrawal
2021-03-16 14:15:33 +00:00
committed by Tim Abbott
parent 493c00f2ad
commit f79a59d5f8
3 changed files with 15 additions and 13 deletions

View File

@@ -450,7 +450,7 @@ export function initialize() {
$("body").on("click", "#recent_topics_search", (e) => {
e.stopPropagation();
recent_topics.change_focused_element(e, "click");
recent_topics.change_focused_element($(e.target), "click");
});
$("body").on("click", "#recent_topics_table .on_hover_topic_read", (e) => {
@@ -465,7 +465,7 @@ export function initialize() {
$("body").on("click", ".btn-recent-filters", (e) => {
e.stopPropagation();
recent_topics.change_focused_element(e, "click");
recent_topics.change_focused_element($(e.target), "click");
recent_topics.set_filter(e.currentTarget.dataset.filter);
recent_topics.update_filters_view();
});