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:
parent
ec0aa6bb65
commit
008bfc6793
|
@ -423,7 +423,10 @@ $(document).ready(function () {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
input.blur(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', '');
|
img.css('display', '');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue