Renaming current folder now keep current folder opened

pull/1/head
ClemDee 6 years ago
parent 8a9f60e477
commit 3a2dd5e0a8

@ -774,7 +774,16 @@ define([
e.stopPropagation();
if (e.which === 13) {
removeInput(true);
if (JSON.stringify(path) === JSON.stringify(currentPath)) {
var newName = $input.val();
manager.rename(path, $input.val(), function () {
path[path.length - 1] = newName;
APP.displayDirectory(path);
});
}
else {
manager.rename(path, $input.val(), refresh);
}
return;
}
if (e.which === 27) {

Loading…
Cancel
Save