diff --git a/lib/coder.js b/lib/coder.js index 7253ea3..d833cd4 100644 --- a/lib/coder.js +++ b/lib/coder.js @@ -1157,6 +1157,7 @@ var ICEcoder = { perms = actionElemType=="file" ? 664 : 705; // Identify our target element & the first child element in it's location + if (!location) {location="/"} targetElem = document.getElementById('filesFrame').contentWindow.document.getElementById(location.replace(/\//g,"|")); locNest = targetElem.parentNode.parentNode.nextSibling; if (locNest.nextSibling) {locNest = locNest.nextSibling} @@ -1172,7 +1173,7 @@ var ICEcoder = { // Finally we can add the first list item for this file/folder we're adding newLI = document.createElement("li"); newLI.className = cssStyle; - newLI.innerHTML = '        '+file+' '+perms+''; + newLI.innerHTML = '        '+file+' '+perms+''; locNest.nextSibling.appendChild(newLI); locNest.nextSibling.appendChild(newText);