includes/clientside/static/login.js
changeset 651 ce9d78d7251d
parent 585 35e91d16ecf5
child 688 f2a824ce5f18
equal deleted inserted replaced
650:e45183014778 651:ce9d78d7251d
   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);