Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let dlf = $('.download_form');
- let results = [];
- dlf.submit(function(e) {
- $.post($(this).attr('action'), $(this).serialize(), function(json) {
- results.push(json["DownloadUrl"]);
- console.log("Processing link " + results.length + "/" + dlf.size() + "...");
- if (results.length >= dlf.size())
- console.log(JSON.stringify(results));
- }, 'json');
- e.preventDefault();
- e.stopPropagation();
- return false;
- });
- dlf.submit();
Add Comment
Please, Sign In to add comment