Guest User

Untitled

a guest
Aug 15th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. filter.FlightStart(context, {Type: 'country', Code: 'RU'}, function(result){
  2. if(result == 'RU'){
  3. filter.FlightStarts(context, {Type: 'city', Code: 'MOW'}, function(result){
  4. if(result == 'MOW'){
  5. action.ClearOrigin(context, {toggle: 'all'}, function(){
  6. end();
  7. })
  8. }
  9. })
  10. } else {
  11. filter.FlightStarts(context, {Type: 'country', Code: 'UA'}, function(result){
  12. if(result == 'UA'){
  13. action.ClearOrigin(context, {toggle: 'all'}, function(){
  14. end();
  15. })
  16. }
  17. });
  18. }
  19. })
Add Comment
Please, Sign In to add comment