commit
1c20dba67f
1 changed files with 2 additions and 2 deletions
|
@ -99,7 +99,7 @@ function getString(thing) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getStringable(thing) {
|
function getStringable(thing) {
|
||||||
return (typeof thing == "string" || typeof thing == "number" ||
|
return (typeof thing == "string" || typeof thing == "number" || typeof thing == "boolean" ||
|
||||||
(thing === Object(thing) &&
|
(thing === Object(thing) &&
|
||||||
(thing.__proto__ == StaticArrayBufferProto ||
|
(thing.__proto__ == StaticArrayBufferProto ||
|
||||||
thing.__proto__ == StaticUint8ArrayProto ||
|
thing.__proto__ == StaticUint8ArrayProto ||
|
||||||
|
@ -893,7 +893,7 @@ function doAjax(param) {
|
||||||
}
|
}
|
||||||
$.ajax(URL_BASE + URL_CALLS[param.call] + param.urlParameters, {
|
$.ajax(URL_BASE + URL_CALLS[param.call] + param.urlParameters, {
|
||||||
type: param.httpType,
|
type: param.httpType,
|
||||||
data: jsonThing(param.jsonData),
|
data: param.jsonData && jsonThing(param.jsonData),
|
||||||
contentType: 'application/json; charset=utf-8',
|
contentType: 'application/json; charset=utf-8',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function(xhr) {
|
beforeSend: function(xhr) {
|
||||||
|
|
Loading…
Reference in a new issue