admin_bar_menu.js
4 months ago
elementor_cache_integration.js
5 months ago
gravity_forms.js
2 months ago
math_captcha.js
1 year ago
nitropackUI.js
2 months ago
np_notices.js
3 months ago
np_safemode.js
1 year ago
np_select2.js
2 months ago
np_select2.min.js
2 months ago
np_settings.js
2 months ago
popper.min.js
1 year ago
post_clear_cache.js
4 months ago
preview_site.js
3 months ago
system_report.js
4 months ago
widgets_ajax.js
2 months ago
gravity_forms.js
27 lines
| 1 | jQuery(function($){ |
| 2 | |
| 3 | $('.nitropack-gravityforms-block').each(function(){ |
| 4 | let $block = $(this); |
| 5 | let blockName = $block.attr('data-block-name') || ''; |
| 6 | let blockAttributes = $block.attr('data-block-attributes') || ''; |
| 7 | let blockNonce = $block.attr('data-block-nonce') || ''; |
| 8 | let blockQuery = 'action=nitropack_gf_block_output_ajax' |
| 9 | + '&block_name=' + encodeURIComponent(blockName) |
| 10 | + '&block_attributes=' + encodeURIComponent(blockAttributes) |
| 11 | + '&block_nonce=' + encodeURIComponent(blockNonce); |
| 12 | |
| 13 | $block.load(nitropack_gf_ajax.ajax_url + '?' + blockQuery); |
| 14 | }); |
| 15 | |
| 16 | $('.nitropack-gravityforms-shortcode').each(function(){ |
| 17 | let $shortcode = $(this); |
| 18 | let shortcodeAttributes = $shortcode.attr('data-shortcode-attributes') || ''; |
| 19 | let shortcodeNonce = $shortcode.attr('data-shortcode-nonce') || ''; |
| 20 | let shortcodeQuery = 'action=nitropack_gf_shortcode_output_ajax' |
| 21 | + '&shortcode-attributes=' + encodeURIComponent(shortcodeAttributes) |
| 22 | + '&shortcode_nonce=' + encodeURIComponent(shortcodeNonce); |
| 23 | |
| 24 | $shortcode.load(nitropack_gf_ajax.ajax_url + '?' + shortcodeQuery); |
| 25 | }); |
| 26 | }); |
| 27 |