diff --git a/lib/coder.js b/lib/coder.js
index 8fd2fcb..31bde48 100644
--- a/lib/coder.js
+++ b/lib/coder.js
@@ -1229,6 +1229,7 @@ var ICEcoder = {
// Identify our target element & the first child element in it's location
if (!location) {location="/"}
+ location = location.replace(top.iceRoot,"");
targetElem = document.getElementById('filesFrame').contentWindow.document.getElementById(location.replace(/\//g,"|"));
locNest = targetElem.parentNode.parentNode.nextSibling;
if (locNest.nextSibling) {locNest = locNest.nextSibling}
@@ -1722,8 +1723,8 @@ var ICEcoder = {
// Change permissions on a file/folder
chmod: function(file,perms) {
top.ICEcoder.showHide('hide',top.document.getElementById('blackMask'));
- top.ICEcoder.serverQueue("add","lib/file-control.php?action=perms&file="+file+"&perms="+perms);
- top.ICEcoder.serverMessage('chMod '+perms+' on
'+file);
+ top.ICEcoder.serverQueue("add","lib/file-control.php?action=perms&file="+file.replace(top.iceRoot,"")+"&perms="+perms);
+ top.ICEcoder.serverMessage('chMod '+perms+' on
'+file.replace(top.iceRoot,""));
},
// Show a message