refactor(dom) copyCurrent -> copyFiles

This commit is contained in:
coderaiser 2014-04-17 03:37:38 -04:00
parent a6cfb7c84e
commit 1d5d87d2a4
3 changed files with 4 additions and 7 deletions

View file

@ -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];

View file

@ -247,7 +247,7 @@ var CloudCmd, Util, DOM;
break;
case Key.F5:
DOM.copyCurrent(current);
DOM.copyFiles();
DOM.preventDefault(event);
break;

View file

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