diff --git a/lib/client/dom.js b/lib/client/dom.js index 5e3c2194..c909d6e2 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -973,9 +973,9 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; */ this.getCurrentFileContent = function(pParams, currentFile) { var ret, - currentFile = currentFile ? currentFile : this.getCurrentFile(), + current = currentFile || this.getCurrentFile(), lParams = pParams ? pParams : {}, - lPath = this.getCurrentPath(currentFile), + lPath = this.getCurrentPath(current), lErrorWas = pParams.error, lError = function(jqXHR) { Util.exec(lErrorWas); @@ -987,7 +987,6 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; lParams.error = lError; - if (this.isCurrentIsDir(currentFile)) lPath += '?json'; else if (!lParams.dataType)