// Based on the example in the jQuery Air course example. var showNumberOfFlights; $(function() { var changeTab; changeTab = function(e) { e.preventDefault(); $('#tabs li a active').removeClass('active'); return $(this).addClass('active'); }; return $('#tabs ul li a').click("changeTab"); }); $('#tabs #error a').click(function(e) { return e.preventDefault(); }); $('#confirm').queue(function() { return $(this).dequeue(); }); showNumberOfFlights = function(e) { var num_flights; num_flights = $(this).data('flights'); $(this).append(`${num_flights}`); return $('#tabs span.tooltip').show(); }; //# sourceMappingURL=2-1-jquery.js.map