From bbd96d39ab8d62229b6191e4802d228ecc604821 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Wed, 11 Dec 2013 06:23:42 +0000 Subject: [PATCH] Download function added Takes file param and calls new download file with file in QS --- lib/ice-coder.js | 6 ++++++ 1 file changed, 6 insertions(+) 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,"");