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.

compose_box: Remove non-existent classes.

sanchi-ta8acd0ce2558
diff --git a/web/src/compose_send_menu_popover.js b/web/src/compose_send_menu_popover.js
index d94466f5e6d..dbc579d0189 100644
--- a/web/src/compose_send_menu_popover.js
+++ b/web/src/compose_send_menu_popover.js
@@ -186,8 +186,6 @@ export function initialize() {
.attr("value");
selected_behaviour = selected_behaviour === "true"; // Convert to bool
user_settings.enter_sends = selected_behaviour;
- $(`.enter_sends_${!selected_behaviour}`).hide();
- $(`.enter_sends_${selected_behaviour}`).show();
// Refocus in the content box so you can continue typing or
// press Enter to send.
diff --git a/web/src/server_events_dispatch.js b/web/src/server_events_dispatch.js
index 1941c37f642..23abb5acd26 100644
--- a/web/src/server_events_dispatch.js
+++ b/web/src/server_events_dispatch.js
@@ -853,8 +853,6 @@ export function dispatch_normal_event(event) {
}
if (event.property === "enter_sends") {
user_settings.enter_sends = event.value;
- $(`.enter_sends_${!user_settings.enter_sends}`).hide();
- $(`.enter_sends_${user_settings.enter_sends}`).show();
break;
}
if (event.property === "presence_enabled") {