jQuery(document).ready(function(){ jQuery('.linee').prepend('
'); jQuery('.linee').append(''); var url = window.location; jQuery('#root_488 a[href="'+url+'"]').addClass('current_page_item'); if(sigla_lingua == 'it'){ jQuery('#form_consigli .bottone_alt').val('Invia Consiglio'); } }); function mostra(div) { if ( jQuery("#"+div).css("display")=='none' ) { jQuery("#"+div).slideDown(); } else { jQuery("#"+div).slideUp(); } // jQuery('#'+div).toggle( 'slideDown', '', 500 ); } /*funzioni per elenco gelaterie in consigli.php*/ function ClearOptions(OptionList) { for (x = OptionList.length; x >= 0; x = x - 1) { OptionList[x] = null; } } function AddToOptionList(OptionList, OptionValue, OptionText,selezionato) { // Add option to the bottom of the list OptionList[OptionList.length] = new Option(OptionText, OptionValue,selezionato); } function add_gel(val) { jQuery('[name="punto_vendita"]').append(''); } function setta_email_gel() { jQuery('[name="srvcheck"]').val(''); jQuery('[name="gelaterie_scelte"]').val(''); var lista_mail_gel = ''; var valore = ''; var lista_id_gel = ''; jQuery('.chk_gel').each(function() { var stato = ''; stato =jQuery(this).attr('checked'); valore = jQuery(this).val(); jQuery('#cont_gel_'+valore).css('background-color','transparent'); if (stato=='checked') { lista_id_gel = lista_id_gel + valore + '/'; jQuery('#cont_gel_'+valore).css('background-color','#fff'); } else { // jQuery('#cont_gel_'+valore).css('background-color','#000'); } }); if (lista_id_gel !='') { var my_url = '/ws.php?azione=crea_lista_gel&lista_id_gel='+lista_id_gel; jQuery.ajax({ type: 'GET', // dataType: 'json', url: my_url, success:function(result) { jQuery('[name="srvcheck"]').val(result); } }); //definisco l'elenco da mandare in email all'admin my_url = '/ws.php?azione=nomi_lista_gel&lista_id_gel='+lista_id_gel; jQuery.ajax({ type: 'GET', // dataType: 'json', url: my_url, success:function(result) { jQuery('[name="gelaterie_scelte"]').val(result); } }); } }