Changes in static/js/funciones.js [3996539:2f56f4e] in firmaeventos


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • static/js/funciones.js

    r3996539 r2f56f4e  
     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 TracChangeset for help on using the changeset viewer.