Fix full name edit for repetive edit

fixes #6212

fixes the data attributes after edit
fixes markup to successfully re-edit display name
This commit is contained in:
Morris Jobke 2013-12-05 23:44:59 +01:00
parent ec0aa6bb65
commit 008bfc6793
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.parent().parent().data('displayname', displayName);
input.replaceWith('<span>' + escapeHTML(displayName) + '</span>');
img.css('display', '');
});
});