mirror of https://github.com/zulip/zulip.git
user settings: Fix garbage full name in change-full-name modal.
We should set full name evertime we open the modal. Otherwise it will show garbage value which user has entered before but did not save.
This commit is contained in:
parent
ecddc10272
commit
e2e7d288a5
|
@ -298,6 +298,7 @@ exports.set_up = function () {
|
|||
e.stopPropagation();
|
||||
if (!page_params.realm_name_changes_disabled && !page_params.server_name_changes_disabled
|
||||
|| page_params.is_admin) {
|
||||
$('#change_full_name_modal').find("input[name='full_name']").val(page_params.full_name);
|
||||
overlays.open_modal('change_full_name_modal');
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue