Best Flights
The best flightsTop flights - Webjet
#173381 * Get the flying classes from the parameters and reformat them * Put the flying classes on the widget if the page has in the parameters */ Functions setWidgetParamFromURL() { var travelClass i. e. windows flying classes.
tripClass = widgetParamFormat(travelClass) ; if (tripType) flightSearchClassParamParamFormat. tripType = widgetParamFormat(tripType) ; $('#wj-flight-search-widget'). setWJSearchParameter(flightSearchClassParamètres) ; } Formats Widget-Parameter von url */ Funktion widgetParamFormat(param) { ret. param. replace(/[_-]+/," ").toLowerCase(). replace(/\w\S*/g, function(txt){ retxt retour txt. charAt(0). toUpperCase( ) + txt.substr(1). toLowerCase(); }); } $( document ). ready(function() {/* Homepage - fills the chosen fly detail in the dialog box*/ /*$('.
tile-results #search-results-div'). bind('click', "a. clickable-div", fonction (evt) { var outerDiv= $ (evt.target).closest('. side-gutter') ; var departure('#wj-hpdf-departure-city2 option:selected'). text() ; var destination= $ (outerDiv).find("h4"). html (); //var flightType= $ (outerDiv).find(".destination"). html(); setInputForSearchPopup('', depart, destination); });*/ /* Sale page - fill in the chosen trip detail in the pop-up mask*/ $('.outer-block'). bind('click', ". outer-block .
The " "block-one a"" command, the (" maybe ) command { // var outerDiv is $ (evt.target).closest('. block-one'); // var departure is $ (outerDiv).find(".from-wrap"). html(); // var destination is $ (outerDiv). find(".destination"). html (); setInputForSearchPopup(evt); }); /* specials page - fill in the chosen fly detail in the fly details in the pop-up mask*/ $('#specialHeroElement'). bind('click','a. searchFormParam', function of ('evt) { setInputForSearchPopup(evt); })); $('#specialHeroSliderElement'). bind('click', 'a..').
searchFormParam', Funktion (evt) { setInputForSearchPopup(evt); }); /* Other page - fill the chosen trip detail in the dialog box*/ // $('.searchFormParam'). click( function on ( evt) { // var departure=$( (this). data("departure"); // var destination=$( this).
on('click','a[value=Multistop]', multiSearchBoxCheap) ; // Breites Suchfeld zurück zu normale $('. widget-home-search #wj-flight-search-widget'). on('click','a[valeur="One Way"]', function(){normalSearchBox('home')})) ; $('. widget-home-search #wj-flight-search-widget').