fix(edit-names) rename files when current file is ".."

This commit is contained in:
coderaiser 2016-12-30 15:12:57 +02:00
parent 634def86ee
commit 596ac24499

View file

@ -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)