From 54bf8055489bdec82b0d549130859022925dd70b Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Sun, 10 Jun 2012 11:36:54 +0100 Subject: [PATCH] openFile function now takes a file as param You can now pass through a file link to this function If passed through, it'll be set as the file to open --- lib/coder.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/coder.js b/lib/coder.js index ea497ef..0364c4b 100644 --- a/lib/coder.js +++ b/lib/coder.js @@ -734,7 +734,11 @@ var ICEcoder = { }, // Open a file on demand - openFile: function() { + openFile: function(fileLink) { + if (fileLink) { + top.ICEcoder.thisFileFolderLink=fileLink; + top.ICEcoder.thisFileFolderType="file"; + } if (top.ICEcoder.thisFileFolderLink!="" && top.ICEcoder.thisFileFolderType=="file") { var shortURL, canOpenFile;