diff --git a/lib/client/dom.js b/lib/client/dom.js index e83b2420..80aa26c8 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -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) {