Last change
on this file since 94b3e3f was
2f56f4e,
checked in by rudmanmrrod <rudman22@…>, 7 years ago
|
Agregados estilos de formularios, agregado form de errores, acomodado login
|
-
Property mode set to
100644
|
File size:
381 bytes
|
Rev | Line | |
---|
[2f56f4e] | 1 | function 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.