includes/clientside/static/rank-manager.js
changeset 823 4596c40aaa94
parent 794 720516162012
child 1227 bdac73ed481e
equal deleted inserted replaced
822:3b951ea8e758 823:4596c40aaa94
   487   var json_packet = {
   487   var json_packet = {
   488     mode: 'get_rank',
   488     mode: 'get_rank',
   489     rank_id: rank_id
   489     rank_id: rank_id
   490   };
   490   };
   491   json_packet = ajaxEscape(toJSONString(json_packet));
   491   json_packet = ajaxEscape(toJSONString(json_packet));
   492   ajaxPost(makeUrlNS('Admin', 'UserRanks/action.json'), 'r=' + json_packet, function()
   492   ajaxPost(makeUrlNS('Admin', 'UserRanks/action.json'), 'r=' + json_packet, function(ajax)
   493     {
   493     {
   494       if ( ajax.readyState == 4 && ajax.status == 200 )
   494       if ( ajax.readyState == 4 && ajax.status == 200 )
   495       {
   495       {
   496         var response = String(ajax.responseText + '');
   496         var response = String(ajax.responseText + '');
   497         if ( !check_json_response(response) )
   497         if ( !check_json_response(response) )
   559     json_packet.rank_id = editor.rankdata.rank_id;
   559     json_packet.rank_id = editor.rankdata.rank_id;
   560   }
   560   }
   561   /// ... pack it in
   561   /// ... pack it in
   562   var json_packet = ajaxEscape(toJSONString(json_packet));
   562   var json_packet = ajaxEscape(toJSONString(json_packet));
   563   
   563   
   564   ajaxPost(makeUrlNS('Admin', 'UserRanks/action.json'), 'r=' + json_packet, function()
   564   ajaxPost(makeUrlNS('Admin', 'UserRanks/action.json'), 'r=' + json_packet, function(ajax)
   565     {
   565     {
   566       if ( ajax.readyState == 4 && ajax.status == 200 )
   566       if ( ajax.readyState == 4 && ajax.status == 200 )
   567       {
   567       {
   568         var response = String(ajax.responseText + '');
   568         var response = String(ajax.responseText + '');
   569         if ( !check_json_response(response) )
   569         if ( !check_json_response(response) )
   716     rank_id: editor.rankdata.rank_id
   716     rank_id: editor.rankdata.rank_id
   717   };
   717   };
   718   var rank_id = editor.rankdata.rank_id;
   718   var rank_id = editor.rankdata.rank_id;
   719   
   719   
   720   json_packet = ajaxEscape(toJSONString(json_packet));
   720   json_packet = ajaxEscape(toJSONString(json_packet));
   721   ajaxPost(makeUrlNS('Admin', 'UserRanks/action.json'), 'r=' + json_packet, function()
   721   ajaxPost(makeUrlNS('Admin', 'UserRanks/action.json'), 'r=' + json_packet, function(ajax)
   722     {
   722     {
   723       if ( ajax.readyState == 4 && ajax.status == 200 )
   723       if ( ajax.readyState == 4 && ajax.status == 200 )
   724       {
   724       {
   725         var response = String(ajax.responseText + '');
   725         var response = String(ajax.responseText + '');
   726         if ( !check_json_response(response) )
   726         if ( !check_json_response(response) )