mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
parent
10d4552e27
commit
2ce4386cfd
@ -191,7 +191,6 @@ webdav.delete = function (link) {
|
||||
request.onerror = () => reject(request.statusText);
|
||||
request.send();
|
||||
});
|
||||
request.send();
|
||||
}
|
||||
|
||||
webdav.new = function (link) {
|
||||
@ -208,7 +207,6 @@ webdav.new = function (link) {
|
||||
request.onerror = () => reject(request.statusText);
|
||||
request.send();
|
||||
});
|
||||
request.send();
|
||||
}
|
||||
|
||||
/* * * * * * * * * * * * * * * *
|
||||
@ -222,7 +220,10 @@ function closePrompt(event) {
|
||||
if(!prompt)
|
||||
return;
|
||||
|
||||
if(typeof event != 'undefined') {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
document.querySelector('.overlay').classList.remove('active');
|
||||
prompt.classList.remove('active');
|
||||
|
||||
@ -277,7 +278,7 @@ function openEvent(event) {
|
||||
}
|
||||
|
||||
function deleteOnSingleFile() {
|
||||
closePrompt(event);
|
||||
closePrompt();
|
||||
buttons.setLoading('delete');
|
||||
|
||||
let promises = [];
|
||||
@ -293,7 +294,7 @@ function deleteOnSingleFile() {
|
||||
}
|
||||
|
||||
function deleteOnListing() {
|
||||
closePrompt(event);
|
||||
closePrompt();
|
||||
buttons.setLoading('delete');
|
||||
|
||||
let promises = [];
|
||||
|
Loading…
Reference in New Issue
Block a user