Merge pull request #6213 from owncloud/fix-full-name-edit

Fix full name edit for repetitive edit
This commit is contained in:
Vincent Petry 2013-12-06 06:46:34 -08:00
commit db0b291f63
1 changed files with 4 additions and 1 deletions

View File

@ -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', '');
});
});