mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 08:56:20 +00:00
refactor(dom) getCurrentFileContent
This commit is contained in:
parent
234eafcd37
commit
f81a84d575
1 changed files with 2 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue