mirror of
https://github.com/filebrowser/filebrowser.git
synced 2025-05-09 11:42:57 +00:00
close #49
This commit is contained in:
parent
5cb16ed8ae
commit
b9cbf2a49f
@ -924,6 +924,15 @@ document.addEventListener("editor", (event) => {
|
||||
|
||||
let saveContent = function() {
|
||||
let data = form2js(document.querySelector('form'));
|
||||
|
||||
if (typeof data.content === "undefined") {
|
||||
data.content = "";
|
||||
}
|
||||
|
||||
if (typeof data.content === "number") {
|
||||
data.content = data.content.toString();
|
||||
}
|
||||
|
||||
let html = button.changeToLoading();
|
||||
let request = new XMLHttpRequest();
|
||||
request.open("PUT", toWebDavURL(window.location.pathname));
|
||||
|
Loading…
x
Reference in New Issue
Block a user