diff --git a/index.html b/index.html index bae506b..24dc989 100644 --- a/index.html +++ b/index.html @@ -420,7 +420,7 @@

-

+

remove - - + +
@@ -2464,11 +2464,13 @@ } function setNameEditable() { - showPersonName.contentEditable = 'true' - showPersonName.focus() - document.execCommand('selectAll', false, null); - document.getSelection().collapseToEnd(); - personName = showPersonName.textContent + if(!showPersonName.isContentEditable){ + showPersonName.contentEditable = 'true' + showPersonName.focus() + document.execCommand('selectAll', false, null); + document.getSelection().collapseToEnd(); + personName = showPersonName.textContent + } } async function changePersonName() {