Fix sub-folders changing position in the tree when renaming them

This commit is contained in:
yflory 2017-03-15 17:34:06 +01:00
parent 931f7619c0
commit 9a32fb1999

View File

@ -1626,7 +1626,8 @@ define([
// Display root content
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
if (filesOp.isFile(root[key])) { return; }
var newPath = path.slice();