From 583fde4311ce047d2c2d95697d4f5ebfc0f3082a Mon Sep 17 00:00:00 2001 From: Yashashvi Dave Date: Wed, 15 Aug 2018 17:08:18 +0530 Subject: [PATCH] custom profile field: Set default values in create-field form on load. Add call of reset function, on load of admin settings page. This function reset values in create-new-field form, i.e. field type. --- static/js/settings_profile_fields.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/settings_profile_fields.js b/static/js/settings_profile_fields.js index 45a02b1a51..abb1a32e36 100644 --- a/static/js/settings_profile_fields.js +++ b/static/js/settings_profile_fields.js @@ -352,6 +352,7 @@ exports.set_up = function () { $("#profile-field-settings").on("click", "#add-custom-profile-field-btn", create_profile_field); $("#admin_profile_fields_table").on("click", ".open-edit-form", open_edit_form); set_up_choices_field(); + clear_form_data(); }; return exports;