Commit 5bea0b20 authored by ufku's avatar ufku

Issue #2891824 by apokryfos: Fixed subdirs iteration.

parent 8786b635
......@@ -96,7 +96,7 @@ dirSubdirs: function(dir, subdirs) {
var branch = imce.tree[dir];
if (subdirs && subdirs.length) {
var prefix = dir == '.' ? '' : dir +'/';
for (var i in subdirs) {//add subdirectories
for (var i = 0; i < subdirs.length; i++) {//add subdirectories
imce.dirAdd(prefix + subdirs[i], branch, true);
}
$(branch.li).removeClass('leaf').addClass('expanded');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment