Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

recent_topics: Go to topic if user clicks anywhere in topic col.

Aman Agrawal623fb634061c
diff --git a/static/js/click_handlers.js b/static/js/click_handlers.js
index 18f8d2e11f8..f791f810dba 100644
--- a/static/js/click_handlers.js
+++ b/static/js/click_handlers.js
@@ -430,6 +430,11 @@ exports.initialize = function () {
recent_topics.update_filters_view();
});
+ $("body").on("click", "td.recent_topic_name", (e) => {
+ e.stopPropagation();
+ window.location.href = $(e.currentTarget).find("a").attr("href");
+ });
+
// Search for all table rows (this combines stream & topic names)
$("body").on(
"keyup",