Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Pass HTML element not jquery object to get_input_element_value.
Sahil Batra75c297b5d44d
diff --git a/web/src/settings_components.js b/web/src/settings_components.jsindex 4860ab9ca48..7d172c47bc2 100644--- a/web/src/settings_components.js+++ b/web/src/settings_components.js@@ -559,11 +559,11 @@ export function check_property_changed(elem, for_realm_default_settings, sub, grcase "emojiset":case "user_list_style":case "stream_privacy":- proposed_val = get_input_element_value($elem, "radio-group");+ proposed_val = get_input_element_value(elem, "radio-group");break;default:if (current_val !== undefined) {- proposed_val = get_input_element_value($elem, typeof current_val);+ proposed_val = get_input_element_value(elem, typeof current_val);} else {blueslip.error("Element refers to unknown property", {property_name});}@@ -578,7 +578,7 @@ function switching_to_private(properties_elements, for_realm_default_settings) {if (property_name !== "stream_privacy") {continue;}- const proposed_val = get_input_element_value($elem, "radio-group");+ const proposed_val = get_input_element_value(elem, "radio-group");return proposed_val === "invite-only-public-history" || proposed_val === "invite-only";}return false;diff --git a/web/src/settings_org.js b/web/src/settings_org.jsindex c82c6bf2bca..3b7aaacaae9 100644--- a/web/src/settings_org.js+++ b/web/src/settings_org.js@@ -828,7 +828,7 @@ export function populate_data_for_request(subsection, for_realm_default_settingsgroup,)) {- const input_value = settings_components.get_input_element_value($input_elem);+ const input_value = settings_components.get_input_element_value(input_elem);if (input_value !== undefined) {let property_name;if (for_realm_default_settings || sub || group) {