settings_account: Fix small typo in initialize_custom_user_type_fields.

This commit is contained in:
Hemanth V. Alluri 2019-04-12 18:49:23 +05:30 committed by Tim Abbott
parent c1d8b17e49
commit c192327a37
3 changed files with 7 additions and 6 deletions

View File

@ -279,7 +279,7 @@ exports.show_user_profile = function (user) {
ui.set_up_scrollbar($("#user-profile-modal #body"));
$("#user-profile-modal").modal("show");
settings_account.intialize_custom_user_type_fields("#user-profile-modal #content", user.user_id, false, false);
settings_account.initialize_custom_user_type_fields("#user-profile-modal #content", user.user_id, false, false);
};
function get_user_info_popover_items() {

View File

@ -124,8 +124,8 @@ exports.initialize_custom_date_type_fields = function (element_id) {
altFormat: "F j, Y"});
};
exports.intialize_custom_user_type_fields = function (element_id, user_id, is_editable,
set_handler_on_update) {
exports.initialize_custom_user_type_fields = function (element_id, user_id, is_editable,
set_handler_on_update) {
var field_types = page_params.custom_profile_field_types;
var user_pills = {};
@ -196,7 +196,7 @@ exports.add_custom_profile_fields_to_settings = function () {
}
exports.append_custom_profile_fields(element_id, people.my_current_user_id());
exports.intialize_custom_user_type_fields(element_id, people.my_current_user_id(), true, true);
exports.initialize_custom_user_type_fields(element_id, people.my_current_user_id(), true, true);
exports.initialize_custom_date_type_fields(element_id);
};

View File

@ -367,8 +367,9 @@ exports.on_load_success = function (realm_people_data) {
$(element).html("");
settings_account.append_custom_profile_fields(element, user_id);
settings_account.initialize_custom_date_type_fields(element);
var fields_user_pills = settings_account.intialize_custom_user_type_fields(element, user_id,
true, false);
var fields_user_pills = settings_account.initialize_custom_user_type_fields(element,
user_id,
true, false);
var url;
var data;