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
This commit is contained in:
Matt Pass
2012-06-10 11:36:54 +01:00
parent 2ac674f5c6
commit 54bf805548

View File

@@ -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;