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