Set user defined perms on new file/dir

This commit is contained in:
Matt Pass
2014-11-10 07:23:09 +00:00
parent 18d66850fa
commit ce38b126dc
2 changed files with 26 additions and 26 deletions

View File

@@ -1391,7 +1391,7 @@ var ICEcoder = {
// Is this is a file or folder and based on that, set the CSS styling & link
actionElemType = fileOrFolder;
cssStyle = actionElemType=="file" ? "pft-file ext-" + file.substr(file.indexOf(".")+1) : "pft-directory";
perms = actionElemType=="file" ? 664 : 705;
perms = actionElemType=="file" ? top.ICEcoder.newFilePerms : top.ICEcoder.newDirPerms;
// Identify our target element & the first child element in it's location
if (!location) {location="/"}