parent().parent() -> closest()

This commit is contained in:
Morris Jobke 2013-12-06 13:53:01 +01:00
parent 008bfc6793
commit ac77218d57

View file

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