fix delete #70

This commit is contained in:
Henrique Dias 2017-01-22 12:26:18 +00:00
parent d8f0dc20a4
commit a9aaba5841

View File

@ -191,7 +191,6 @@ webdav.delete = function (link) {
request.onerror = () => reject(request.statusText); request.onerror = () => reject(request.statusText);
request.send(); request.send();
}); });
request.send();
} }
webdav.new = function (link) { webdav.new = function (link) {
@ -208,7 +207,6 @@ webdav.new = function (link) {
request.onerror = () => reject(request.statusText); request.onerror = () => reject(request.statusText);
request.send(); request.send();
}); });
request.send();
} }
/* * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * *
@ -222,7 +220,10 @@ function closePrompt(event) {
if(!prompt) if(!prompt)
return; return;
if(typeof event != 'undefined') {
event.preventDefault(); event.preventDefault();
}
document.querySelector('.overlay').classList.remove('active'); document.querySelector('.overlay').classList.remove('active');
prompt.classList.remove('active'); prompt.classList.remove('active');
@ -277,7 +278,7 @@ function openEvent(event) {
} }
function deleteOnSingleFile() { function deleteOnSingleFile() {
closePrompt(event); closePrompt();
buttons.setLoading('delete'); buttons.setLoading('delete');
let promises = []; let promises = [];
@ -293,7 +294,7 @@ function deleteOnSingleFile() {
} }
function deleteOnListing() { function deleteOnListing() {
closePrompt(event); closePrompt();
buttons.setLoading('delete'); buttons.setLoading('delete');
let promises = []; let promises = [];