//_____________________________________________________________________________________________________ function consentimiento(elIdElemento, elDivFormulario) { document.getElementById(elDivFormulario).style.display="none" document.getElementById(elDivFormulario + "Espere").style.display="block" // console.log ("ejecutando consentimiento") // alert("Ok para continuar") recogerConsentimiento(document.getElementById(elIdElemento), location.host, location.protocol + '//' + location.host + location.pathname); setTimeout(function(){ document.getElementById(elIdElemento).submit() }, 1000); } // ********************************************************************************************************************** // IMPORTANTE: ESTA FUNCIÓN "VALIDAR" LA UTILIZA EL GESTOR DE CONSENTIMIENTOS, ESTÁ COPIADA DE SU MANUAL, Y DEBE EXISTIR ASÍ: function validar(){ //inicio funciones de validacion de checkbox //if(!(document.getElementById("mod-form-1021592-checkbox-231817").checked)){ //alert('No ha marcado la casilla de aceptación'); //return false; //} //fin funcion validacion return true; } // ********************************************************************************************************************** //_____________________________________________________________________________________________________ function ajax_listadoActividades(filtro, elemento) { valorDevolver="" jQuery.ajax( { type: "POST", url: "https://www.gesportsl.es/wp-content/themes/customizr-pro/00_personales/ajax_listadoActividades.php", data: "filtro=" + filtro + "&idSelect=" + elemento, // dataType: 'text/html', cache: false, async: false, // Necesario para FIREFOX success: function(recibido) { valorDevolver=recibido if (document.getElementById("listaActividades")) { document.getElementById("listaActividades").innerHTML=recibido } } } ); } function ajax_bolsaTrabajo_ficha(idAspirante) { valorDevolver="" jQuery.ajax( { type: "POST", url: "https://www.gesportsl.es/wp-content/themes/customizr-pro/00_personales/ajax_bolsaTrabajo_ficha.php", data: "idA=" + idAspirante, // dataType: 'text/html', cache: false, async: false, // Necesario para FIREFOX success: function(recibido) { valorDevolver=recibido } } ); return valorDevolver } function ajax_solicitaFactura(idModulo, idRegistro) { valorDevolver=0 jQuery.ajax( { type: "POST", url: "https://www.gesportsl.es/wp-content/themes/customizr-pro/00_personales/ajax_solicitaFactura.php", data: "idM=" + idModulo + "&idR=" + idRegistro, // dataType: 'text/html', cache: false, async: false, // Necesario para FIREFOX success: function(recibido) { alert("Se ha enviado un correo comunicando su solicitud a nuestras oficinas, y se ha enviado una copia a su dirección de correo.") valorDevolver=recibido } } ); // return valorDevolver } function ajax_recordarContrasenha(emailDestino) { valorDevolver=0 jQuery.ajax( { type: "POST", url: "https://www.gesportsl.es/wp-content/themes/customizr-pro/00_personales/ajax_recordarContrasenha.php", data: "mail=" + emailDestino, // dataType: 'text/html', cache: false, async: false, // Necesario para FIREFOX success: function(recibido) { valorDevolver=recibido } } ); return valorDevolver } function dameTipoDato(id) { valorDevolver="" jQuery.ajax( { type: "POST", url: "https://www.gesportsl.es/wp-content/themes/customizr-pro/00_personales/ajax_dameTipoDato.php", data: "id=" + id, // dataType: 'text/html', cache: false, async: false, // Necesario para FIREFOX success: function(recibido) { valorDevolver=recibido; } } ); return valorDevolver } function ajax_borraCarro() { valorDevolver="" jQuery.ajax( { type: "POST", url: "https://www.gesportsl.es/wp-content/themes/customizr-pro/00_personales/ajax_borraCarro.php", data: "", // dataType: 'text/html', cache: false, async: false, // Necesario para FIREFOX success: function(recibido) { // alert(recibido); valorDevolver=recibido; } } ); return valorDevolver; } function registraPagoTPV(fuc, importe, localizador) { idPagoTPV="" jQuery.ajax( { type: "POST", url: "https://www.gesportsl.es/wp-content/themes/customizr-pro/00_personales/ajax_registraPagoTPV.php", data: "fuc=" + fuc + "&importe=" + importe, // dataType: 'text/html', cache: false, async: false, // Necesario para FIREFOX success: function(recibido) { // alert(recibido) idPagoTPV=recibido; } } ); return idPagoTPV } function decimales(numero) { //Formato dos decimales numeroR=numero*100 numeroR=Math.round(numeroR) numeroR=numeroR/100.0 // alert("numero " + numero + "\n queda = " + numeroR) return numeroR } function despliega(capa) { if (document.getElementById(capa)) { if (document.getElementById(capa).style.display=='none') {document.getElementById(capa).style.display='block';} else {document.getElementById(capa).style.display='none';} } } function despliegaTarget(numero) { /* capa="target_" + numero if (document.getElementById(capa)) {estadoCapaActual=document.getElementById(capa).style.display} for (x=0;x<30;x++) { capa="target_" + x if (document.getElementById(capa)){document.getElementById(capa).style.display='none'} } capa="target_" + numero if (document.getElementById(capa)) { if (estadoCapaActual=='none') {document.getElementById(capa).style.display='block';} else {document.getElementById(capa).style.display='none';} } if (numero=='1000') { for (x=0;x<50;x++) { capa="target_" + x if (document.getElementById(capa)){document.getElementById(capa).style.display='block'} } } */ }