PageSourceSearch

https://youth4biodiversity.org/wp-content/plugins/donationsystem/js/donation_rewards.js?ver=7.1

js youth4biodiversity.org collected 2026-09-24 12:40:22 UTC 951 bytes, 29 lines download raw bytes

1/* global hrsm_admin_params */
2jQuery( function ( $ ) {
3    'use strict' ;
4
5    var Donation_Rewards = {
6        init : function ( ) {
7            $( document ).on( 'click' , '.sumo_donation_manual_free_product' , this.manually_add_donation_rewards ) ;
8        } ,
9        manually_add_donation_rewards : function ( event ) {
10          event.preventDefault();
11          var $this = $(event.currentTarget);
12          var data = {
13              action: 'donation_reward_product',
14              product_id: $($this).data('product_id'),
15              donation_security: donation_rewards_params.reward_nonce,
16          };
17          $.ajax({
18              type: 'POST',
19              url: donation_rewards_params.ajax_url,
20              data: data
21          }).done(function (response) {
22            if ( true === response.success ){
23              window.location.reload();
24            }
25          });
26        },
27    } ;
28    Donation_Rewards.init() ;
29} ) ;

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.