diff --git a/settings/js/users.js b/settings/js/users.js index 6222c0e70c..f19b196640 100644 --- a/settings/js/users.js +++ b/settings/js/users.js @@ -423,7 +423,10 @@ $(document).ready(function () { } }); input.blur(function () { - $(this).replaceWith(escapeHTML($(this).val())); + var input = $(this), + displayName = input.val(); + input.parent().parent().data('displayname', displayName); + input.replaceWith('' + escapeHTML(displayName) + ''); img.css('display', ''); }); });