Skip to content

Commit

Permalink
added download test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinDo committed Aug 21, 2024
1 parent 30682c4 commit 76181a3
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/frontend_celery/webapp/static/js/my_lists.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76181a3

Please sign in to comment.