confirm_reserve.js.erb 222 B

123456
  1. window.location = "<%= new_sale_path %>";
  2. $("#notice").html("<%= flash[:notice] %>");
  3. var ticket_window = window.open("<%= print_reserve_receipt_path(@sale.id, format: 'pdf') %>", 'New tab', '' );
  4. ticket_window.print();