includes/clientside/static/login.js
changeset 907 44851d7e9bda
parent 899 df88cedf0995
child 1001 79770fb4132a
equal deleted inserted replaced
906:c949e82b8f49 907:44851d7e9bda
  1121     buttons.push({
  1121     buttons.push({
  1122         text: $lang.get('user_logout_confirm_btn_deauth'),
  1122         text: $lang.get('user_logout_confirm_btn_deauth'),
  1123         color: 'blue',
  1123         color: 'blue',
  1124         onclick: function()
  1124         onclick: function()
  1125         {
  1125         {
  1126           miniPromptDestroy(this);
  1126           var mp = miniPromptGetParent(this);
       
  1127           var whitey = whiteOutMiniPrompt(mp);
       
  1128           setTimeout(function()
       
  1129             {
       
  1130               whiteOutReportSuccess(whitey);
       
  1131               setTimeout(function()
       
  1132                 {
       
  1133                   miniPromptDestroy(mp);
       
  1134                 }, 1250);
       
  1135             }, 1000);
       
  1136           
  1127           ajaxLoginPerformRequest({
  1137           ajaxLoginPerformRequest({
  1128               mode:  'logout',
  1138               mode:  'logout',
  1129               level: auth_level,
  1139               level: auth_level,
  1130               csrf_token: csrf_token
  1140               csrf_token: csrf_token
  1131           });
  1141           });
  1406         }
  1416         }
  1407       }
  1417       }
  1408     }
  1418     }
  1409     window.location.hash = '#auth:false';
  1419     window.location.hash = '#auth:false';
  1410   }
  1420   }
  1411 }
  1421   window.stdAjaxPrefix = append_sid(scriptPath + '/ajax.php?title=' + title);
       
  1422 }