diff --git a/main.js b/main.js index 76b99f8..7b40d6a 100644 --- a/main.js +++ b/main.js @@ -689,7 +689,7 @@ createSendButtons() } - function prettify(form, was, became, insertedFileRows) { + function prettifyEditCpForm(form, was, became, insertedFileRows) { moveInputValues(form, was, became) prettifyFiles(insertedFileRows) @@ -698,7 +698,7 @@ makeCoordinatesLinks() } - function uglify(form, was, became) { + function uglifyEditCpForm(form, was, became) { moveInputValues(form, was, became) for (const removedFileLink of removedFilesLinks) { removeDeletedFilesFromUglyVersion(removedFileLink) @@ -1142,7 +1142,7 @@ prettifyButton.type = "button" prettifyButton.textContent = "Сделать красиво" prettifyButton.addEventListener("click", () => { - prettify(form, oldTable, container, insertedFileRows) + prettifyEditCpForm(form, oldTable, container, insertedFileRows) }) rowContentWrapper.appendChild(prettifyButton) @@ -1156,7 +1156,7 @@ unglifyButton.type = "button" unglifyButton.textContent = "Сделать как было" unglifyButton.addEventListener("click", () => { - uglify(form, container, oldTable) + uglifyEditCpForm(form, container, oldTable) }) let topRowContentWrapper = el.querySelector("div > div > div")