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.

condense: Fix implicit use of any.

Anders Kaseorge9d0e43668b2
diff --git a/web/src/condense.ts b/web/src/condense.ts
index 9866d211a7c..f56d508e634 100644
--- a/web/src/condense.ts
+++ b/web/src/condense.ts
@@ -259,7 +259,7 @@ export function condense_and_collapse(elems: JQuery): void {
}
export function initialize(): void {
- $("#message_feed_container").on("click", ".message_expander", function (e) {
+ $("#message_feed_container").on("click", ".message_expander", function (this: HTMLElement, e) {
// Expanding a message can mean either uncollapsing or
// uncondensing it.
const $row = $(this).closest(".message_row");
@@ -284,7 +284,7 @@ export function initialize(): void {
e.preventDefault();
});
- $("#message_feed_container").on("click", ".message_condenser", function (e) {
+ $("#message_feed_container").on("click", ".message_condenser", function (this: HTMLElement, e) {
const $row = $(this).closest(".message_row");
const id = rows.id($row);
// Focus on the condensed message.