feature(menu) show upload in two kinds of menu

This commit is contained in:
coderaiser 2015-06-30 09:50:23 -04:00
parent e685b5739b
commit 05f25e994e
2 changed files with 5 additions and 5 deletions

View file

@ -230,13 +230,13 @@ Right mouse click button shows context menu with items:
- Delete
- Pack
- Unpack
- Upload
- Upload to (Dropbox, Github, GDrive, FilePicker)
- Download
- New (File, Directory, from FilePicker)
- Cut
- Copy
- Paste
- New (File, Directory, from FilePicker)
- Upload
- (Un)Select All
- Log Out (available when the `authorization` is enabled)

View file

@ -142,6 +142,9 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO;
'Directory' : DOM.promptNewDir,
'From Cloud' : getFromPicker,
},
'Upload' : function() {
CloudCmd.Upload.show();
},
'(Un)Select All': DOM.toggleAllSelectedFiles
};
@ -170,9 +173,6 @@ var CloudCmd, Util, DOM, CloudFunc, MenuIO;
'Delete' : Operation.show.bind(null, 'delete'),
'Pack' : getActiveFunc(DOM.pack),
'Unpack' : getActiveFunc(DOM.unpack),
'Upload' : function() {
CloudCmd.Upload.show();
},
'Upload To' : {},
'Download' : download,
'Cut' : Buffer.cut,