source: firmaeventos/static/js/funciones.js @ 2f56f4e

Last change on this file since 2f56f4e was 2f56f4e, checked in by rudmanmrrod <rudman22@…>, 6 years ago

Agregados estilos de formularios, agregado form de errores, acomodado login

  • Property mode set to 100644
File size: 381 bytes
Line 
1function refresh_captcha(element) {
2    $form = $(element).parents('form');
3    var url = location.protocol + "//" + window.location.hostname + ":" + location.port + "/captcha/refresh/";
4
5    $.getJSON(url, {}, function(json) {
6        $form.find('input[name="captcha_0"]').val(json.key);
7        $form.find('img.captcha').attr('src', json.image_url);
8    });
9
10    return false;
11} 
Note: See TracBrowser for help on using the repository browser.