mirror of https://github.com/zulip/zulip.git
settings_account: Fix small typo in initialize_custom_user_type_fields.
This commit is contained in:
parent
c1d8b17e49
commit
c192327a37
|
@ -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() {
|
||||
|
|
|
@ -124,7 +124,7 @@ 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,
|
||||
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);
|
||||
};
|
||||
|
||||
|
|
|
@ -367,7 +367,8 @@ 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,
|
||||
var fields_user_pills = settings_account.initialize_custom_user_type_fields(element,
|
||||
user_id,
|
||||
true, false);
|
||||
|
||||
var url;
|
||||
|
|
Loading…
Reference in New Issue