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.

analytics: Remove unused click handler in populate messages by client.

Lauryn Menardaeb01cfeb3b5
diff --git a/static/js/stats/stats.js b/static/js/stats/stats.js
index c9d93b2b0a9..072e2c548a7 100644
--- a/static/js/stats/stats.js
+++ b/static/js/stats/stats.js
@@ -561,21 +561,6 @@ function populate_messages_sent_by_client(data) {
}
draw_plot();
});
-
- // handle links with @href started with '#' only
- $(document).on("click", 'a[href^="#"]', function (e) {
- // target element id
- const id = $(this).attr("href");
- // target element
- const $id = $(id);
- if ($id.length === 0) {
- return;
- }
- // prevent standard hash navigation (avoid blinking in IE)
- e.preventDefault();
- const pos = $id.offset().top + $(".page-content")[0].scrollTop - 50;
- $(".page-content").animate({scrollTop: pos + "px"}, 500);
- });
}
function populate_messages_sent_by_message_type(data) {