Advertisement
Guest User

Untitled

a guest
Aug 28th, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     function CheckConfirmCode()
  2.     {
  3.         $.ajax({
  4.        
  5.             type:'POST',
  6.             url:'http://foodstore.media-soup.ru/hs/repsend_reg_shop.php',
  7.             data:'state=check&phone='+$('#phone_shop').val(),
  8.             success:function(response)
  9.             {
  10.                 var inforesp = response.split('|');
  11.                
  12.                 if(inforesp[0] == 'time_wait')
  13.                 {
  14.                     $('#log_wait').empty().text(inforesp[1]).fadeIn(700);
  15.                 }
  16.                 else if(inforesp[1] == 'time_send')
  17.                 {
  18.                     $('#log_wait').empty().text('Код повторно отправлен');
  19.                     setTimeout(function() { $('#log_wait').fadeOut(700); },2000);
  20.                     UpdateRepeatDate();
  21.                 }
  22.             }
  23.        
  24.         })
  25.        
  26.         //isSendQuery = true;
  27.         //$('#apply_form').submit();
  28.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement