PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/bettingbin.com/wp-content/themes/sinatra/inc/customizer/controls/button/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/bettingbin.com/wp-content/themes/sinatra/inc/customizer/controls/button/button.js |
;(function( $ ) { wp.customize.controlConstructor['sinatra-button'] = wp.customize.Control.extend({ ready: function() { 'use strict'; var control = this; control.container.on( 'click', '.button', function(e){ var $this = $(this), action = $this.data( 'ajax-action' ); // Check for ajax action. if ( action ) { e.preventDefault(); $this.siblings( '.spinner' ).addClass( 'activated' ); var data = { _ajax_nonce: sinatra_customizer_localized.wpnonce, action: action, }; $.post( sinatra_customizer_localized.ajaxurl, data, function(response) { // Check response if ( response.success ) { $this.siblings( '.spinner' ).removeClass( 'activated' ); // Should we reload the page? if ( 'undefined' !== typeof response.data.reload && response.data.reload ) { location.reload(); } } }); } }); }, }); })( jQuery );