diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-12-05 23:44:59 +0100 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-12-05 23:44:59 +0100 |
commit | 008bfc67930c7eb9837be4ac0628def754b88075 (patch) | |
tree | 5de6c7e08abdc6e3c1d0c45059284be24bf0d495 /settings | |
parent | ec0aa6bb6514cc161c718b0c7439fe5c036416e5 (diff) | |
download | nextcloud-server-008bfc67930c7eb9837be4ac0628def754b88075.tar.gz nextcloud-server-008bfc67930c7eb9837be4ac0628def754b88075.zip |
Fix full name edit for repetive edit
fixes #6212
fixes the data attributes after edit
fixes markup to successfully re-edit display name
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', ''); }); }); |