fix(dom) getCurrentFileContent: add dataType check

This commit is contained in:
coderaiser 2013-09-20 11:18:44 +00:00
parent ca18d14799
commit 73f758e313
2 changed files with 3 additions and 1 deletions

View file

@ -382,6 +382,8 @@ var Util, DOM, CloudFunc, CloudCmd;
DOM.getCurrentFileContent({
url : lFSPath,
dataType: 'json',
error : function(){
DOM.setHistory(lOldURL, null, lOldURL);
},

View file

@ -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)