Avoid jsonifying undefined data
For example, when requesting a verification code, there is no JSON data to send.
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user