File Editor
Directories:
.. (Back)
Files:
payment.js
payment.min.js
Create New File
Create
Edit File: payment.min.js
var WPFormsPointersPayment=window.WPFormsPointersPayment||function(n,t,o,e){const i={},r={pointerId:e.pointer,nonce:e.nonce},a={init(){o(a.ready)},ready(){a.setup(),a.bindEvents()},setup(){i.$document=o(n)},bindEvents(){i.$document.on("click",'#toplevel_page_wpforms-overview [href$="-payments"], #wpforms-education-pointers-payments',a.handleOnClick)},handleOnClick(n){n.preventDefault();n=o(this);const e=n.attr("href");e&&(n.closest(".wp-pointer-content").parent().hide(),o.post(ajaxurl,{pointer_id:r.pointerId,_ajax_nonce:r.nonce,action:"wpforms_education_pointers_engagement"}).done(function(){t.location.href=e}))}};return a}(document,window,jQuery,wpforms_education_pointers_payment);WPFormsPointersPayment.init();
Save Changes
Rename File
Rename