Renaming current folder now keep current folder opened
This commit is contained in:
@@ -774,7 +774,16 @@ define([
|
|||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
if (e.which === 13) {
|
if (e.which === 13) {
|
||||||
removeInput(true);
|
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);
|
manager.rename(path, $input.val(), refresh);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (e.which === 27) {
|
if (e.which === 27) {
|
||||||
|
|||||||
Reference in New Issue
Block a user