mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(edit-names) rename files when current file is ".."
This commit is contained in:
parent
634def86ee
commit
596ac24499
1 changed files with 3 additions and 3 deletions
|
|
@ -46,11 +46,11 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO;
|
|||
}
|
||||
|
||||
this.show = function() {
|
||||
if (Info.name === '..')
|
||||
return Dialog.alert.noFiles(TITLE);
|
||||
|
||||
var names = getActiveNames().join('\n');
|
||||
|
||||
if (Info.name === '..' && names.length === 1)
|
||||
return Dialog.alert.noFiles(TITLE);
|
||||
|
||||
CloudCmd.Edit
|
||||
.getEditor()
|
||||
.setValueFirst('edit-names', names)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue