diff options
Diffstat (limited to 'settings')
-rw-r--r-- | settings/js/users.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/settings/js/users.js b/settings/js/users.js index 6222c0e70cd..f19b196640c 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('<span>' + escapeHTML(displayName) + '</span>'); img.css('display', ''); }); }); |