// JavaScript Document $(document).ready(function() { $.scrollTo(0); tutti = Dests.concat(Edests); tutti = tutti.concat(Wdests); //qqq tutti = tutti.unique(); //popolaListe(Dests, document.dettagli.partenza, 's', 'a'); switchtoeasy('r'); //popolaListe(Dests, document.triangolo.trpartenza, 's', 'a'); popolaListeTr(document.triangolo.trpartenza); //popolaListe(Dests, document.triangolo.trarrivo, 's', 'a'); popolaListeTr(document.triangolo.trarrivo); popolaListe(Dests, document.offerte.offpartenza, 's', ''); changeOrigDestListOff(document.offerte.offpartenza, document.offerte.offarrivo, 'Qualsiasi', 's'); $("#divContent1").hide(); $('#abort').click(function() { if (currXhr) { $("#divContent"+contadiv).remove(); $("#floater"+contadiv).remove(); contadiv += 1; $("#content").append("
"); //nuovo contentdiv aggiunto in coda a content if (stretta==1) {$("#divContent"+contadiv).addClass('stringi');} //se siamo in resize mode aggiunge l'informazione al div appena creato $("#divContent"+contadiv).hide(); //e poi lo nasconde $(".bottone").show(); //mostra nuovamente i bottoni $(".tastooff").show(); } }); $('#aiutami').submit(function() { $(this).ajaxSubmit( { target: '#helpme1' } ); return false; }); $('#offerte').submit(function() { $(this).ajaxSubmit( { target: '#divContent' + contadiv + ' .contenitore', beforeSubmit: showRequest, success: showResponse } ); return false; }); $('#dettagli').submit(function() { $(this).ajaxSubmit( { beforeSend: function(xhr, opts) { currXhr = xhr; }, target: '#divContent' + contadiv + ' .contenitore', beforeSubmit: showRequest2, success: showResponse, url: 'motore2.php?linea='+linea } ); return false; }); document.dettagli.mese.value = "05"; document.dettagli.anno.value = annogiusto; mesegiusto = parseInt(mesegiusto); annogiusto = parseInt(annogiusto); dimensionamento(); });