Changeset 0138d11 in firmaeventos for static/js/funciones.js
- Timestamp:
- Nov 20, 2017, 10:11:45 AM (7 years ago)
- Branches:
- master
- Children:
- 8fa24c3
- Parents:
- 3397a08 (diff), 2f56f4e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent. - 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.