Cleanup of logic and look.
This commit is contained in:
parent
ce38511904
commit
1008f4d093
@ -6,17 +6,15 @@ function updateHTMLDirList(returnData) {
|
|||||||
var images = returnData.getElementsByTagName('IMG_FILE');
|
var images = returnData.getElementsByTagName('IMG_FILE');
|
||||||
var files = returnData.getElementsByTagName('FILE');
|
var files = returnData.getElementsByTagName('FILE');
|
||||||
var insertArea = document.getElementById('dynDiv');
|
var insertArea = document.getElementById('dynDiv');
|
||||||
var i = 0;
|
|
||||||
var size = 0;
|
var size = 0;
|
||||||
|
var i = 0;
|
||||||
|
|
||||||
// Insert dirs
|
// Insert dirs
|
||||||
document.getElementById("path").innerHTML = dirPath;
|
document.getElementById("path").innerHTML = dirPath;
|
||||||
insertArea.innerHTML = "";
|
insertArea.innerHTML = "";
|
||||||
|
|
||||||
// Remove . and ../ if in "root"
|
// Remove . and ../ if in "root"
|
||||||
if (dirPath === "./") {
|
if (dirPath === "./") { i = 2 }
|
||||||
var i = 2
|
|
||||||
}
|
|
||||||
|
|
||||||
size = dirs.length;
|
size = dirs.length;
|
||||||
for (; i < size; i++) {
|
for (; i < size; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user