Changeset 2f56f4e in firmaeventos for static/js/funciones.js
- Timestamp:
- Nov 20, 2017, 10:05:37 AM (7 years ago)
- Branches:
- master
- Children:
- 7cad786, 9add819
- Parents:
- 3996539
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
static/js/funciones.js
r3996539 r2f56f4e 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 TracChangeset
for help on using the changeset viewer.