Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery.each(jQuery('a[href^="/profile/billing/transaction/details/"').splice(0,6), function(i,e) {
- setTimeout(function() {
- jQuery.ajax({
- url: jQuery(e).attr('href'),
- type: 'GET',
- success: function(res) {
- var downloadUrl = jQuery(res).find('a[href^="/profile/billing/order/details/"]').attr('href');
- jQuery.ajax({
- url: downloadUrl,
- type: 'GET',
- success: function(res2) {
- var dUrl = jQuery(res2).find('a[href^="/profile/billing/orders/downloadpdf/"]').attr('href');
- window.location=dUrl;
- }
- });
- }
- });
- }, 1000);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement