| Server IP : 146.59.209.152 / Your IP : 216.73.216.152 Web Server : Apache System : Linux webm009.cluster131.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : monpetu ( 144298) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/monpetu/www/ipprint/wp-content/plugins/order-tracking/assets/js/ |
Upload File : |
jQuery(function($){
var $deactivateLink = $('#the-list').find('[data-slug="order-tracking"] span.deactivate a'),
$overlay = $('#ewd-otp-deactivate-survey-order-tracking'),
$cancelButton = $('#ewd-otp-deactivation-cancel'),
$form = $overlay.find('form'),
formOpen = false;
// Plugin listing table deactivate link.
$deactivateLink.on('click', function(event) {
event.preventDefault();
$overlay.css('display', 'table');
formOpen = true;
$form.find('.ewd-otp-deactivate-survey-option:first-of-type input[type=radio]').focus();
});
// Exit the survey without deactivating or submitting the form
$cancelButton.on( 'click', function( event ) {
$overlay.css('display', 'none');
formOpen = false;
});
// Survey radio option selected.
$form.on('change', 'input[type=radio]', function(event) {
event.preventDefault();
$form.find('input[type=text], .error').hide();
$form.find('.ewd-otp-deactivate-survey-option').removeClass('selected');
$(this).closest('.ewd-otp-deactivate-survey-option').addClass('selected').find('input[type=text]').show();
});
// Survey Skip & Deactivate.
$form.on('click', '.ewd-otp-deactivate-survey-deactivate', function(event) {
event.preventDefault();
location.href = $deactivateLink.attr('href');
});
// Survey submit.
$form.submit(function(event) {
event.preventDefault();
if (! $form.find('input[type=radio]:checked').val()) {
$form.find('.ewd-otp-deactivate-survey-footer').prepend('<span class="error">Please select an option below</span>');
return;
}
var data = {
code: $form.find('.selected input[type=radio]').val(),
install_time: $form.data('installtime'),
reason: $form.find('.selected .ewd-otp-deactivate-survey-option-reason').text(),
details: $form.find('.selected input[type=text]').val(),
site: ewd_otp_deactivation_data.site_url,
plugin: 'Order Tracking'
}
var submitSurvey = $.post('https://www.etoilewebdesign.com/UPCP-Key-Check/Deactivation_Surveys.php', data);
submitSurvey.always(function() {
location.href = $deactivateLink.attr('href');
});
});
// Exit key closes survey when open.
$(document).keyup(function(event) {
if (27 === event.keyCode && formOpen) {
$overlay.hide();
formOpen = false;
$deactivateLink.focus();
}
});
});