Fix sub-folders changing position in the tree when renaming them
This commit is contained in:
parent
931f7619c0
commit
9a32fb1999
@ -1626,7 +1626,8 @@ define([
|
|||||||
|
|
||||||
// Display root content
|
// Display root content
|
||||||
var $list = $('<ul>').appendTo($container);
|
var $list = $('<ul>').appendTo($container);
|
||||||
Object.keys(root).forEach(function (key) {
|
var keys = Object.keys(root).sort();
|
||||||
|
keys.forEach(function (key) {
|
||||||
// Do not display files in the menu
|
// Do not display files in the menu
|
||||||
if (filesOp.isFile(root[key])) { return; }
|
if (filesOp.isFile(root[key])) { return; }
|
||||||
var newPath = path.slice();
|
var newPath = path.slice();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user