PageSourceSearch

https://thelearningmarketplace.com/wp-content/themes/mayosis/js/mayosis-edd-ajax-pagination.js

js thelearningmarketplace.com collected 2026-10-05 11:00:39 UTC 1,505 bytes, 40 lines download raw bytes

1// mayosis-edd-ajax-pagination.js
2jQuery(document).ready(function($) {
3    console.log("EDD AJAX Pagination script loaded");
4
5    $(document).on('click', '.mayosis-edd-p-history-pagination a', function(e) {
6        e.preventDefault();
7        
8        var page = $(this).data('page');
9        var type = $(this).data('type');
10        var data = {
11            action: 'mayosis_edd_ajax_pagination',
12            page: page,
13            type: type,
14            nonce: mayosis_edd_ajax_pagination_vars.nonce
15        };
16
17        console.log("Clicked page: ", page, "Type: ", type); // Add this line for debugging
18
19        // Show loading icon
20        $('.msps_loading-icon').show();
21
22        $.post(mayosis_edd_ajax_pagination_vars.ajax_url, data, function(response) {
23            if(response.success) {
24                if (type === 'purchase_history') {
25                    $('.edd-purchase-history').html(response.data);
26                } else if (type === 'download_history') {
27                    $('.edd-download-history').html(response.data);
28                }
29                // Update active class
30                $('.mayosis-edd-p-history-pagination a').removeClass('active');
31                $('.mayosis-edd-p-history-pagination a[data-page="' + page + '"]').addClass('active');
32            } else {
33                alert('An error occurred');
34            }
35
36            // Hide loading icon
37            $('.msps_loading-icon').hide();
38        });
39    });
40});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.