Download function added

Takes file param and calls new download file with file in QS
This commit is contained in:
Matt Pass
2013-12-11 06:23:42 +00:00
parent 6fcb600fd9
commit bbd96d39ab

View File

@@ -1863,6 +1863,12 @@ var ICEcoder = {
top.ICEcoder.filesFrame.contentWindow.frames['fileControl'].location.href="plugins/zip-it/index.php?zip="+tgt;
},
// Prompt to download our file
downloadFile: function(file) {
file=file.replace(/\//g,"|");
top.ICEcoder.filesFrame.contentWindow.frames['fileControl'].location.href="lib/download.php?file="+file;
},
// Change permissions on a file/folder
chmod: function(file,perms) {
file = file.replace(top.iceRoot,"");