editor technically works

This commit is contained in:
Bel LaPointe
2022-02-15 16:08:24 -07:00
parent 0e1ced34b2
commit 701ba9c48f
4 changed files with 64 additions and 6 deletions

View File

@@ -43,7 +43,7 @@
function pushFile() {
const title = document.getElementById("title").innerHTML ? document.getElementById("title").innerHTML : ""
const body = easyMDE.value() ? easyMDE.value() : ""
const id = easyMDE.meta.id ? easyMDE.meta.id : ""
const id = window.location.pathname.includes("/ui/files/") ? window.location.pathname.split("/ui/files/")[1] : ""
headers = {}
if (title)
headers["Title"] = title
@@ -52,8 +52,6 @@
alert(`failed to push file ${id}: ${status}: ${body}`)
throw `failed to push file ${id}: ${status}: ${body}`
}
drawTree()
//drawFile(id)
document.getElementById("saveFeedback").innerHTML = "success!"
if (saveFeedbackInterval) {
clearTimeout(saveFeedbackInterval)