Khadafi995

Transport On change

Dec 14th, 2016
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $('#form_is_with_transport').on('lcs-statuschange', '.btn-switch', function(){
  2.         $.ajax({
  3.             url: uriBase + "admin/booking/update_panel",
  4.             type: "POST",
  5.             data:{
  6.                 booking_id : $('#hidden_booking_id').val(),
  7.                 service_id : 1,
  8.                 new_pax_simple : $('#form_pax_simple').val(),
  9.                 new_pax_double : $('#form_pax_double').val(),
  10.                 new_pax_twin : $('#form_pax_twin').val(),
  11.                 new_transport : $('#form_is_with_transport').val(),
  12.                 new_hiking : $('#form_is_with_hiking').val(),
  13.                 new_confirmed : $('#form_is_confirmed').val()
  14.             },
  15.             cache: false,
  16.             success: function (p) {
  17.                 alert('1.p : '+p);
  18.                 },
  19.             error: function(e) {
  20.                 alert('1.e : '+e);
  21.             }
  22.         })
  23.     })
Advertisement
Add Comment
Please, Sign In to add comment