includes/clientside/static/misc.js
changeset 259 112debff64bd
parent 254 f49e3c8b638c
child 266 5d62ef764b0d
equal deleted inserted replaced
258:8be996c3740d 259:112debff64bd
   333       if ( ajax.readyState == 4 )
   333       if ( ajax.readyState == 4 )
   334       {
   334       {
   335         var response = String(ajax.responseText);
   335         var response = String(ajax.responseText);
   336         if ( response.substr(0,1) != '{' )
   336         if ( response.substr(0,1) != '{' )
   337         {
   337         {
   338           alert('Invalid JSON response from server: ' + response);
   338           handle_invalid_json(response);
       
   339           ajax_auth_mb_cache.destroy();
   339           return false;
   340           return false;
   340         }
   341         }
   341         response = parseJSON(response);
   342         response = parseJSON(response);
   342         var level = ajax_auth_level_cache;
   343         var level = ajax_auth_level_cache;
   343         var form_html = '';
   344         var form_html = '';