equal
deleted
inserted
replaced
319 { |
319 { |
320 if ( ajax.readyState == 4 && ajax.status == 200 ) |
320 if ( ajax.readyState == 4 && ajax.status == 200 ) |
321 { |
321 { |
322 // parse response |
322 // parse response |
323 var response = String(ajax.responseText + ''); |
323 var response = String(ajax.responseText + ''); |
324 if ( response.substr(0, 1) != '{' ) |
324 if ( !check_json_response(response) ) |
325 { |
325 { |
326 handle_invalid_json(response); |
326 handle_invalid_json(response); |
327 return false; |
327 return false; |
328 } |
328 } |
329 response = parseJSON(response); |
329 response = parseJSON(response); |