From fe28e7df144a9bbe1f07eb04a4c8d57c3216342f Mon Sep 17 00:00:00 2001 From: German Correa Date: Fri, 1 Dec 2017 23:53:38 -0300 Subject: [PATCH] Desabilita la financiacion en el form de registro. --- js/app.js | 16 ++++++++++++---- register.php | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/js/app.js b/js/app.js index eaa3686..93ad381 100644 --- a/js/app.js +++ b/js/app.js @@ -130,7 +130,13 @@ $(document).ready(function(){ }); $("#detallefinan").hide(); $("#detallefinan textarea").val(""); - var finan; + //acabo el plazo de financiacion + var finan=true; + $('input:radio[name="financiacion"]').attr('disabled',true); + $('#nofinan').attr('checked',true); + $("#sifinan").parents('.form-group').hide(); + /* + $('input:radio[name="financiacion"]').change(function(){ finan=true; if($(this).is(':checked') && $(this).val() == "si"){ @@ -142,7 +148,7 @@ $(document).ready(function(){ $('#sifinan').tooltip("hide"); $('#sifinan').tooltip("destroy"); - }); + });*/ var tipodoc; $('#tipodoc li a').click(function(event){ @@ -241,6 +247,8 @@ $(document).ready(function(){ $("#detallefinan textarea").tooltip("show"); fail=true; } + //esto va en el de prod $prod + /* if($('#g-recaptcha-response').val() == ""){ $("div.g-recaptcha").tooltip({ "title":'Marque "No soy un robot"', @@ -249,7 +257,7 @@ $(document).ready(function(){ }); $("div.g-recaptcha").tooltip("show"); fail=true; - } + }*/ if(!fail){ $("#txtpais").val(pais); @@ -257,7 +265,7 @@ $(document).ready(function(){ $("#txttrabaja").val(trabaja); console.log($(this).serialize()); - var post = $.post('register', $(this).serialize()); + var post = $.post('register.php', $(this).serialize()); post.done(function(data){ console.log(data); data = $.parseJSON(data); diff --git a/register.php b/register.php index 7f4266d..00af1cc 100644 --- a/register.php +++ b/register.php @@ -112,7 +112,7 @@ if(empty($_POST['g-recaptcha-response'])){ $errors['recaptcha'] = 'Debe validar el captcha'; } else if(!verifyCaptcha()){ - $errors['recaptcha'] = 'Error en la validaciĆ³n de ReCaptcha'; + $errors['recaptcha'] = 'Error en la validaciĆ³n de ReCaptcha'; } if( !file_exists("2021y22.csv"))