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.

panels: Replace deprecated jQuery event trigger shorthand.

Anders Kaseorgc09da2abdf91
diff --git a/static/js/panels.js b/static/js/panels.js
index ba6507144dd..ed7a459aef8 100644
--- a/static/js/panels.js
+++ b/static/js/panels.js
@@ -164,7 +164,7 @@ export function initialize() {
$("#panels").on("keyup", ".alert-link[role=button]", function (e) {
e.stopPropagation();
if (e.key === "Enter") {
- $(this).click();
+ $(this).trigger("click");
}
});
}