Guest User

Untitled

a guest
Feb 22nd, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. let dlf = $('.download_form');
  2. let results = [];
  3.  
  4. dlf.submit(function(e) {
  5. $.post($(this).attr('action'), $(this).serialize(), function(json) {
  6. results.push(json["DownloadUrl"]);
  7.  
  8. console.log("Processing link " + results.length + "/" + dlf.size() + "...");
  9.  
  10. if (results.length >= dlf.size())
  11. console.log(JSON.stringify(results));
  12.  
  13. }, 'json');
  14. e.preventDefault();
  15. e.stopPropagation();
  16. return false;
  17. });
  18.  
  19. dlf.submit();
Add Comment
Please, Sign In to add comment