- Fecha y hora:
- 23/05/2017 15:15:53 (hace 7 años)
- Branches:
- base, constituyente, estudiantes, general, plan_patria, sala
- Children:
- bcf369a, b5454d9
- Parents:
- d9527db
- Fichero:
-
- 1 editado
Leyenda
- No modificado
- Añadido
- Eliminado
-
static/js/funciones.js
rd9527db r2fc7ee1 805 805 806 806 /** 807 * Función que recarga la imágen del captcha, ***falta depurar*** 807 * @brief Función para recargar el captcha vÃa json 808 * @param element Recibe el botón 808 809 */ 809 $(document).ready(function() {810 $('.js-captcha-refresh').click(function(){811 //alert("xxxxx");812 /*$form = $(this).parents('form'); 813 $.getJSON( $(this).data('url'), {}, function(json) {814 // This should update your captcha image src and captcha hidden input815 });816 return false;*/817 location.reload(); 818 });819 } );810 function refresh_captcha(element) { 811 $form = $(element).parents('form'); 812 var url = location.protocol + "//" + window.location.hostname + ":" + location.port + "/captcha/refresh/"; 813 814 $.getJSON(url, {}, function(json) { 815 $form.find('input[name="captcha_0"]').val(json.key); 816 $form.find('img.captcha').attr('src', json.image_url); 817 }); 818 819 return false; 820 }
Nota: Vea TracChangeset
para ayuda en el uso del visor de conjuntos de cambios.