Cleanup of logic and look.

This commit is contained in:
Maxim Stewart 2018-04-22 04:01:01 -05:00
parent ce38511904
commit 1008f4d093
1 changed files with 2 additions and 4 deletions

View File

@ -6,17 +6,15 @@ function updateHTMLDirList(returnData) {
var images = returnData.getElementsByTagName('IMG_FILE');
var files = returnData.getElementsByTagName('FILE');
var insertArea = document.getElementById('dynDiv');
var i = 0;
var size = 0;
var i = 0;
// Insert dirs
document.getElementById("path").innerHTML = dirPath;
insertArea.innerHTML = "";
// Remove . and ../ if in "root"
if (dirPath === "./") {
var i = 2
}
if (dirPath === "./") { i = 2 }
size = dirs.length;
for (; i < size; i++) {