From 76181a3d7c8bdf90fb9d330c6a895811c54d88ca Mon Sep 17 00:00:00 2001 From: MarvinDo Date: Wed, 21 Aug 2024 12:15:58 +0200 Subject: [PATCH] added download test --- .../webapp/static/js/my_lists.js | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/src/frontend_celery/webapp/static/js/my_lists.js b/src/frontend_celery/webapp/static/js/my_lists.js index b5c4026b..95d50ce4 100644 --- a/src/frontend_celery/webapp/static/js/my_lists.js +++ b/src/frontend_celery/webapp/static/js/my_lists.js @@ -17,20 +17,22 @@ $(document).ready(function() }); $('#export_to_vcf_button').click(function(){ - document.getElementById("export_to_vcf_worker").click() - //$.ajax({ - // type: 'GET', - // url: "/download/vcf/variant_list", - // data: {'list_id': "77"}, - // success: function(returnval, status, request) { - // console.log(returnval) - // }, - // error: function(xhr, status, error) { - // console.log(xhr) - // console.log(status) - // console.log(error) - // } - //}); + //document.getElementById("export_to_vcf_worker").click() + console.log("started") + $.ajax({ + type: 'GET', + url: "/download/vcf/variant_list", + data: {'list_id': "77"}, + success: function(returnval, status, request) { + console.log(returnval) + }, + error: function(xhr, status, error) { + console.log(xhr) + console.log(status) + console.log(error) + } + }); + console.log("after download") }); var list_id = $('#current-list-id')[0].innerText