Changeset 2f56f4e in firmaeventos for static/js/funciones.js


Ignore:
Timestamp:
Nov 20, 2017, 10:05:37 AM (7 years ago)
Author:
rudmanmrrod <rudman22@…>
Branches:
master
Children:
7cad786, 9add819
Parents:
3996539
Message:

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

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.