fix(rest) read: add dataType

This commit is contained in:
coderaiser 2014-05-21 03:46:00 -04:00
parent 4902adbe8f
commit 0af0190688

View file

@ -43,7 +43,8 @@ var Util, DOM, CloudFunc;
method : 'GET',
url : CloudFunc.FS + url,
callback : callback,
notLog : !isQuery
notLog : !isQuery,
dataType : 'text'
});
};
@ -149,11 +150,12 @@ var Util, DOM, CloudFunc;
p.url = apiURL + p.url;
DOM.ajax({
method : p.method,
url : p.url,
data : data,
error : Images.showError,
success : function(data) {
method : p.method,
url : p.url,
data : data,
dataType : p.dataType,
error : Images.showError,
success : function(data) {
Images.hide();
if (!p.notLog)