includes/clientside/static/ajax.js
changeset 1125 367768040a61
parent 1053 bdbb49cf6f1b
child 1226 de56132c008d
equal deleted inserted replaced
1124:1e956881d362 1125:367768040a61
   142   $.post(stdAjaxPrefix + '&_mode=protect', { level: level, reason: reason }, function(response, statustext)
   142   $.post(stdAjaxPrefix + '&_mode=protect', { level: level, reason: reason }, function(response, statustext)
   143     {
   143     {
   144       if ( response.success )
   144       if ( response.success )
   145       {
   145       {
   146         whiteOutReportSuccess(whitey);
   146         whiteOutReportSuccess(whitey);
   147         setTimeout(function()
       
   148           {
       
   149             miniPromptDestroy(mp);
       
   150           }, 1250);
       
   151         // update protect button
   147         // update protect button
   152         var btn = $('#tb_ajax_protect_btn').get(0);
   148         var btn = $('#tb_ajax_protect_btn').get(0);
   153         btn.level = level;
   149         btn.level = level;
   154         btn.setAttribute('onclick', null);
   150         btn.setAttribute('onclick', null);
   155         btn.onclick = null;
   151         btn.onclick = null;
   582             var box = miniPromptGetParent(this);
   578             var box = miniPromptGetParent(this);
   583             var whitey = whiteOutMiniPrompt(box);
   579             var whitey = whiteOutMiniPrompt(box);
   584             ajaxGet(stdAjaxPrefix+'&_mode=resetdelvotes', function(ajax) {
   580             ajaxGet(stdAjaxPrefix+'&_mode=resetdelvotes', function(ajax) {
   585               if ( ajax.readyState == 4 && ajax.status == 200 ) {
   581               if ( ajax.readyState == 4 && ajax.status == 200 ) {
   586                 whiteOutReportSuccess(whitey);
   582                 whiteOutReportSuccess(whitey);
   587                 setTimeout(function()
       
   588                   {
       
   589                     miniPromptDestroy(box);
       
   590                   }, 1250);
       
   591                 
   583                 
   592                 item = document.getElementById('mdgDeleteVoteNoticeBox');
   584                 item = document.getElementById('mdgDeleteVoteNoticeBox');
   593                 if(item)
   585                 if(item)
   594                 {
   586                 {
   595                   opacity('mdgDeleteVoteNoticeBox', 100, 0, 1000);
   587                   opacity('mdgDeleteVoteNoticeBox', 100, 0, 1000);