HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/slfopp7cb1df/public_html/home/wp-content/plugins/easy-pricing-tables/includes/deactivation.js
/* jshint asi: true */
jQuery(document).ready(function($){
	
	var $deactivateButton = $('#the-list tr.active').filter( function() { return $(this).data('plugin') === 'easy-pricing-tables/pricing-table-plugin.php' } ).find('.deactivate a')

	$deactivateButton.click(function(e){
		e.preventDefault()
		$deactivateButton.unbind('click')
		$('body').append(fca_ptp.html)
		fca_ptp_uninstall_button_handlers( $deactivateButton.attr('href') )
		
	})
})

function fca_ptp_uninstall_button_handlers( url ) {
	var $ = jQuery
	$('#fca-ept-deactivate-skip').click(function(){
		$(this).prop( 'disabled', true )
		window.location.href = url
	})
	$('#fca-ept-deactivate-send').click(function(){
		$(this).prop( 'disabled', true )
		$(this).html('...')
		$('#fca-ept-deactivate-skip').hide()
		$.ajax({
			url: fca_ptp.ajaxurl,
			type: 'POST',
			data: {
				"action": "fca_ptp_uninstall",
				"nonce": fca_ptp.nonce,
				"msg": $('#fca-ept-deactivate-textarea').val()
			}
		}).done( function( response ) {
			window.location.href = url			
		})	
	})
	
}