Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings_profile_fields: Pass Jquery consistently.
afeefuddine40ef29e63ba
diff --git a/web/src/settings_profile_fields.js b/web/src/settings_profile_fields.jsindex 16640ae5274..df471b1288c 100644--- a/web/src/settings_profile_fields.js+++ b/web/src/settings_profile_fields.js@@ -271,7 +271,7 @@ function add_choice_row(e) {// which will not have the delete button so that there is at least one option present.$curr_choice_row.find("button.delete-choice").show();const choices_div = e.delegateTarget;- create_choice_row(choices_div);+ create_choice_row($(choices_div));}function delete_choice_row(row) {@@ -665,7 +665,7 @@ export function do_populate_profile_fields(profile_fields_data) {function set_up_select_field() {const field_types = realm.custom_profile_field_types;- create_choice_row("#profile_field_choices");+ create_choice_row($("#profile_field_choices"));if (current_user.is_admin) {const choice_list = $("#profile_field_choices")[0];diff --git a/web/src/settings_streams.js b/web/src/settings_streams.jsindex 0c606d32175..7cce62a4451 100644--- a/web/src/settings_streams.js+++ b/web/src/settings_streams.js@@ -36,7 +36,7 @@ function get_chosen_default_streams() {function create_choice_row() {const $container = $("#default-stream-choices");- const value = settings_profile_fields.get_value_for_new_option("#default-stream-choices");+ const value = settings_profile_fields.get_value_for_new_option($container);const stream_dropdown_widget_name = `select_default_stream_${value}`;const row_html = render_default_stream_choice({value, stream_dropdown_widget_name});$container.append($(row_html));