diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-12-06 06:46:34 -0800 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-12-06 06:46:34 -0800 |
commit | db0b291f63b4ee2a05769b1ab69ee258eed00d7d (patch) | |
tree | 6e1470fe2099521f19fee5efc7c0af70b812651b /settings | |
parent | b18c8e5c53dcc2dca5e8600067910f155f9048d8 (diff) | |
parent | ac77218d570ca48da89ecfee7f055cf12a64015f (diff) | |
download | nextcloud-server-db0b291f63b4ee2a05769b1ab69ee258eed00d7d.tar.gz nextcloud-server-db0b291f63b4ee2a05769b1ab69ee258eed00d7d.zip |
Merge pull request #6213 from owncloud/fix-full-name-edit
Fix full name edit for repetitive edit
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..5ae157b07c6 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.closest('tr').attr('data-displayName', displayName); + input.replaceWith('<span>' + escapeHTML(displayName) + '</span>'); img.css('display', ''); }); }); |