Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
custom_profile_fields: Display data of default external type while edit.
Yogesh Sirsatce14df0f4ff5
diff --git a/static/js/settings_profile_fields.js b/static/js/settings_profile_fields.jsindex 8b950f89504..70742b306eb 100644--- a/static/js/settings_profile_fields.js+++ b/static/js/settings_profile_fields.js@@ -307,11 +307,11 @@ function set_up_external_account_field_edit_form($profile_field_form, url_patterif ($profile_field_form.find("select[name=external_acc_field_type]").val() === "custom") {$profile_field_form.find("input[name=url_pattern]").val(url_pattern_val);$profile_field_form.find(".custom_external_account_detail").show();- $profile_field_form.find("input[name=name]").closest(".input-group").show();- $profile_field_form.find("input[name=hint]").closest(".input-group").show();+ $profile_field_form.find("input[name=name]").prop("disabled", false);+ $profile_field_form.find("input[name=hint]").prop("disabled", false);} else {- $profile_field_form.find("input[name=name]").closest(".input-group").hide();- $profile_field_form.find("input[name=hint]").closest(".input-group").hide();+ $profile_field_form.find("input[name=name]").prop("disabled", true);+ $profile_field_form.find("input[name=hint]").prop("disabled", true);$profile_field_form.find(".custom_external_account_detail").hide();}}