Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
settings: Fix external account profile field initialization order.
yogesh sirsat1a15d60de44c
diff --git a/static/js/settings_profile_fields.js b/static/js/settings_profile_fields.jsindex 4635c8491c6..6e3cd5efca8 100644--- a/static/js/settings_profile_fields.js+++ b/static/js/settings_profile_fields.js@@ -281,9 +281,6 @@ function open_edit_form(e) {profile_field.row.hide();profile_field.form.show();const field = get_profile_field(field_id);- // Set initial value in edit form- profile_field.form.find("input[name=name]").val(field.name);- profile_field.form.find("input[name=hint]").val(field.hint);let field_data = {};if (field.field_data) {field_data = JSON.parse(field.field_data);@@ -298,6 +295,10 @@ function open_edit_form(e) {set_up_external_account_field_edit_form(profile_field, field_data.url_pattern);}+ // Set initial value in edit form+ profile_field.form.find("input[name=name]").val(field.name);+ profile_field.form.find("input[name=hint]").val(field.hint);+profile_field.form.find(".reset").on("click", () => {profile_field.form.hide();profile_field.row.show();