includes/clientside/static/rank-manager.js
changeset 699 c7d737202d59
parent 651 ce9d78d7251d
child 779 609e35845ec3
equal deleted inserted replaced
696:bd5069e1f19a 699:c7d737202d59
   679 
   679 
   680 function ajaxRankEditDeleteConfirmed(editor)
   680 function ajaxRankEditDeleteConfirmed(editor)
   681 {
   681 {
   682   var whitey = whiteOutElement(editor.wrapperdiv);
   682   var whitey = whiteOutElement(editor.wrapperdiv);
   683   
   683   
   684   load_component('SpryEffects');
   684   load_component('jquery');
       
   685   load_component('jquery-ui');
   685   
   686   
   686   var json_packet = {
   687   var json_packet = {
   687     mode: 'delete_rank',
   688     mode: 'delete_rank',
   688     rank_id: editor.rankdata.rank_id
   689     rank_id: editor.rankdata.rank_id
   689   };
   690   };
   719               if ( edit_link )
   720               if ( edit_link )
   720               {
   721               {
   721                 edit_link.parentNode.removeChild(edit_link);
   722                 edit_link.parentNode.removeChild(edit_link);
   722               }
   723               }
   723               // collapse and destroy the editor
   724               // collapse and destroy the editor
   724               new Spry.Effect.Blind(editor.wrapperdiv, { duration: 500, finish: function()
   725               $(editor.wrapperdiv).hide("blind", {}, 500, function()
   725                   {
   726                   {
   726                     // when the animation finishes, nuke the whole thing
   727                     // when the animation finishes, nuke the whole thing
   727                     var container = document.getElementById('admin_ranks_container_right');
   728                     var container = document.getElementById('admin_ranks_container_right');
   728                     container.innerHTML = $lang.get('acpur_msg_select_rank');
   729                     container.innerHTML = $lang.get('acpur_msg_select_rank');
   729                   }
   730                   }
   730                 }).start();
   731                 );
   731             }, 1500);
   732             }, 1500);
   732         }
   733         }
   733         else
   734         else
   734         {
   735         {
   735           whitey.parentNode.removeChild(whitey);
   736           whitey.parentNode.removeChild(whitey);