mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-04 05:33:10 +00:00
fix(dom) promptDeleteSelected: pCurrentFile -> current
This commit is contained in:
parent
94a153a0a0
commit
e7aa819500
1 changed files with 3 additions and 4 deletions
|
|
@ -698,9 +698,8 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
*
|
||||
* @pCurrentFile
|
||||
*/
|
||||
this.promptDeleteSelected = function(pCurrentFile) {
|
||||
var ret, type, isDir, path,
|
||||
current, query, msg,
|
||||
this.promptDeleteSelected = function(current) {
|
||||
var ret, type, isDir, path, query, msg,
|
||||
name = '',
|
||||
msgAsk = 'Do you really want to delete the ',
|
||||
msgSel = 'selected ',
|
||||
|
|
@ -708,7 +707,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
names = Cmd.getSelectedNames(files),
|
||||
i, n = names && names.length;
|
||||
|
||||
if (!Cmd.isCurrentFile(pCurrentFile))
|
||||
if (!Cmd.isCurrentFile(current))
|
||||
current = DOM.getCurrentFile();
|
||||
|
||||
if (n > 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue