( function( api ) { // Extends our custom "vw-charity-ngo" section. api.sectionConstructor['vw-charity-ngo'] = api.Section.extend( { // No events for this type of section. attachEvents: function () {}, // Always make the section active. isContextuallyActive: function () { return true; } } ); } )( wp.customize ); jQuery( document ).ready(function($) { var this_obj = vw_charity_ngo_customizer_params; var api = wp.customize; // Reset options $('.refresh-btn').on('click', function() { var dataValue = $(this).attr('data-value'); $.get( vw_charity_ngo_customizer_params.ajaxurl + '?action=' + dataValue, function( data ) { window.location.reload(); }); }); $('.reset-button').on('click', function() { var $this = $(this); $this.closest('.customize-control').find('.kt-modal').show(); }); $('.close').on('click', function() { $(this).closest('.kt-modal').hide(); }); // When the user clicks anywhere outside of the modal, close it window.onclick = function(event) { if ($(event.target).hasClass('kt-modal')) { $('.kt-modal').hide(); } } });
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
bootstrap.js | File | 144.78 KB | 0777 |
|
custom.js | File | 2.88 KB | 0777 |
|
customize-controls.js | File | 1.08 KB | 0777 |
|
customizer-controls.js | File | 6.41 KB | 0777 |
|
customizer-scripts.js | File | 782 B | 0777 |
|
jquery.superfish.js | File | 7.25 KB | 0777 |
|
plugin-activation.js | File | 3.67 KB | 0777 |
|
wow.js | File | 15.23 KB | 0777 |
|