mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fix(dom) getCurrentFileContent: add dataType check
This commit is contained in:
parent
ca18d14799
commit
73f758e313
2 changed files with 3 additions and 1 deletions
|
|
@ -382,6 +382,8 @@ var Util, DOM, CloudFunc, CloudCmd;
|
|||
DOM.getCurrentFileContent({
|
||||
url : lFSPath,
|
||||
|
||||
dataType: 'json',
|
||||
|
||||
error : function(){
|
||||
DOM.setHistory(lOldURL, null, lOldURL);
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1383,7 +1383,7 @@ var CloudCmd, Util, DOM, CloudFunc;
|
|||
|
||||
if ( this.isCurrentIsDir(lCurrentFile) )
|
||||
lPath += '?json';
|
||||
else
|
||||
else if (!lParams.dataType)
|
||||
lParams.dataType = 'text';
|
||||
|
||||
if (!lParams.url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue