Skip to content

Commit

Permalink
Prevent content duplication on create and update
Browse files Browse the repository at this point in the history
  • Loading branch information
LebCit committed Dec 1, 2023
1 parent f163be1 commit 687fce4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions static/admin/js/adminCreate.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ Finally, click the submit button to create your new page 😉`)
didOpen: () => {
const mdContent = editor.getMarkdown()
const textArea = document.getElementById("file-contents")
textArea.value += mdContent
textArea.value = mdContent
const b = Swal.getConfirmButton()
b.type = "button"
b.addEventListener("click", () => {
Expand Down Expand Up @@ -230,7 +230,7 @@ Finally, click the submit button to create your new page 😉`)
didOpen: () => {
const mdContent = editor.getMarkdown()
const textArea = document.getElementById("file-contents")
textArea.value += mdContent
textArea.value = mdContent
const b = Swal.getConfirmButton()
b.type = "button"
b.addEventListener("click", () => {
Expand Down
2 changes: 1 addition & 1 deletion static/admin/js/adminUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ submitButton.addEventListener("click", () => {
didOpen: () => {
const mdContent = editor.getMarkdown()
const textArea = document.getElementById("file-contents")
textArea.value += mdContent
textArea.value = mdContent
const b = Swal.getConfirmButton()
b.type = "button"
b.addEventListener("click", () => {
Expand Down

0 comments on commit 687fce4

Please sign in to comment.