mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
refactor(dom) toggleAllSelectedFiles: rm pCurrent
This commit is contained in:
parent
e8837d05de
commit
a721932352
2 changed files with 2 additions and 4 deletions
|
|
@ -1155,10 +1155,8 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
return this;
|
||||
};
|
||||
|
||||
this.toggleAllSelectedFiles = function(pCurrent) {
|
||||
this.toggleAllSelectedFiles = function() {
|
||||
var i, n,
|
||||
isStr = Util.isString(pCurrent),
|
||||
lCurrent = !isStr && pCurrent || Cmd.getCurrentFile(),
|
||||
panel = DOM.getPanel(),
|
||||
files = DOM.getFiles(panel),
|
||||
name = DOM.getCurrentName(files[0]);
|
||||
|
|
|
|||
|
|
@ -365,7 +365,7 @@ var CloudCmd, Util, DOM;
|
|||
|
||||
case Key.A:
|
||||
if (pEvent.ctrlKey) {
|
||||
DOM .toggleAllSelectedFiles(lCurrent)
|
||||
DOM .toggleAllSelectedFiles()
|
||||
.preventDefault(pEvent);
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue