parent().parent() -> closest()
This commit is contained in:
parent
008bfc6793
commit
ac77218d57
1 changed files with 1 additions and 1 deletions
|
@ -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', '');
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue