remove file download api

This commit is contained in:
2018-11-06 22:19:57 +01:00
parent 7f2d549368
commit 534c456a5b
4 changed files with 18 additions and 21 deletions

View File

@@ -1,8 +1,8 @@
/*
/*
* Time for a more Java-like approach.
*
*
* Feel free to use this of course
*
*
* Made by Fornax
*/
@@ -36,13 +36,13 @@ var Toolbar = {
}
},
download: function () {
$("#frmDownload").attr("src", "/api/file/" + Viewer.currentFile + "/download");
$("#frmDownload").attr("src", "/api/file/" + Viewer.currentFile + "?download");
},
downloadList: function(){
if(!Viewer.isList){
return;
}
$("#frmDownload").attr("src", "/api/list/" + Viewer.listId + "/zip");
},
copyUrl: function () {
@@ -59,7 +59,7 @@ var Toolbar = {
$("#btnCopy>span").text("Error!");
alert("Your browser does not support copying text.");
}
// Return to normal
setTimeout(function(){
$("#btnCopy>span").text("Copy");