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.

settings_panel_menu: Remove "settings-wrapper" class from jquery selectors.

sahil839f73ecfc2f722
diff --git a/static/js/settings_panel_menu.js b/static/js/settings_panel_menu.js
index 3efdf3b8fa4..ed1933cb06e 100644
--- a/static/js/settings_panel_menu.js
+++ b/static/js/settings_panel_menu.js
@@ -93,7 +93,7 @@ exports.make_menu = function (opts) {
const settings_section_hash = '#' + hash_prefix + section;
hashchange.update_browser_history(settings_section_hash);
- $(".settings-section, .settings-wrapper").removeClass("show");
+ $(".settings-section").removeClass("show");
settings_sections.load_settings_section(section);
@@ -111,7 +111,7 @@ exports.make_menu = function (opts) {
self.get_panel = function () {
const section = curr_li.data('section');
const sel = "[data-name='" + section + "']";
- const panel = $(".settings-section" + sel + ", .settings-wrapper" + sel);
+ const panel = $(".settings-section" + sel);
return panel;
};