diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 0996e1a..ac89022 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -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,"");