summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-12-06 06:46:34 -0800
committerVincent Petry <pvince81@owncloud.com>2013-12-06 06:46:34 -0800
commitdb0b291f63b4ee2a05769b1ab69ee258eed00d7d (patch)
tree6e1470fe2099521f19fee5efc7c0af70b812651b /settings
parentb18c8e5c53dcc2dca5e8600067910f155f9048d8 (diff)
parentac77218d570ca48da89ecfee7f055cf12a64015f (diff)
downloadnextcloud-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.js5
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', '');
});
});