summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-12-06 13:53:01 +0100
committerMorris Jobke <morris.jobke@gmail.com>2013-12-06 13:53:01 +0100
commitac77218d570ca48da89ecfee7f055cf12a64015f (patch)
treefa7bdbe7a98e5133ee04333063502eda809abf4f
parent008bfc67930c7eb9837be4ac0628def754b88075 (diff)
downloadnextcloud-server-ac77218d570ca48da89ecfee7f055cf12a64015f.tar.gz
nextcloud-server-ac77218d570ca48da89ecfee7f055cf12a64015f.zip
parent().parent() -> closest()
-rw-r--r--settings/js/users.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/js/users.js b/settings/js/users.js
index f19b196640c..5ae157b07c6 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -425,7 +425,7 @@ $(document).ready(function () {
input.blur(function () {
var input = $(this),
displayName = input.val();
- input.parent().parent().data('displayname', displayName);
+ input.closest('tr').attr('data-displayName', displayName);
input.replaceWith('<span>' + escapeHTML(displayName) + '</span>');
img.css('display', '');
});