diff --git a/lib/ice-coder.js b/lib/ice-coder.js index b152318..0e5a9e9 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -591,6 +591,18 @@ var ICEcoder = { }; }, + // Copy a file on demand + copyFile: function(selFile) { + top.ICEcoder.copiedFile = selFile; + top.ICEcoder.hideFileMenu(); + }, + + // Paste a file on demand + pasteFile: function(location) { + top.ICEcoder.serverQueue("add","lib/file-control.php?action=paste&file="+top.ICEcoder.copiedFile+"&location="+location); + top.ICEcoder.serverMessage('Pasting File
'+top.ICEcoder.copiedFile.toString().replace(/\|/g,"/").replace(/,/g,"\n")); + }, + // Show menu on right clicking in file manager showMenu: function() { var menuType, folderMenuItems; @@ -617,6 +629,11 @@ var ICEcoder = { document.getElementById('fileMenu').style.display='inline-block'; }, + // Continue to show the file manager + hideFileMenu: function() { + document.getElementById('fileMenu').style.display='none'; + }, + // Update the file manager tree list on demand updateFileManagerList: function(action,location,file,perms,oldName) { var actionElemType, cssStyle, perms, targetElem, locNest, newText, innerLI, newUL, newLI, elemType, nameLI, shortURL, newMouseOver;