mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(dom) copyCurrent -> copyFiles
This commit is contained in:
parent
a6cfb7c84e
commit
1d5d87d2a4
3 changed files with 4 additions and 7 deletions
|
|
@ -1748,18 +1748,15 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
*
|
||||
* @param current
|
||||
*/
|
||||
this.copyCurrent = function(current) {
|
||||
this.copyFiles = function() {
|
||||
var n, name, from, to, files, cmp, msg,
|
||||
path = CurrentInfo.dirPath,
|
||||
RESTful = DOM.RESTful,
|
||||
names = Cmd.getSelectedNames(),
|
||||
length = names && names.length;
|
||||
|
||||
if (!Cmd.isCurrentFile(current))
|
||||
current = Cmd.getCurrentFile();
|
||||
|
||||
if (!length) {
|
||||
name = Cmd.getCurrentName(current);
|
||||
name = DOM.getCurrentName();
|
||||
names.push(name);
|
||||
} else if (length === 1) {
|
||||
name = names[0];
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ var CloudCmd, Util, DOM;
|
|||
break;
|
||||
|
||||
case Key.F5:
|
||||
DOM.copyCurrent(current);
|
||||
DOM.copyFiles();
|
||||
DOM.preventDefault(event);
|
||||
break;
|
||||
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ var Util, DOM, CloudCmd;
|
|||
'contact' : CloudCmd.Contact.show,
|
||||
|
||||
'f2' : DOM.renameCurrent,
|
||||
'f5' : DOM.copyCurrent,
|
||||
'f5' : DOM.copyFiles,
|
||||
'f6' : DOM.moveCurrent,
|
||||
'f7' : DOM.promptNewDir,
|
||||
'f8' : DOM.promptDelete
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue