PluginProbe ʕ •ᴥ•ʔ
Slider Ultimate / 2.2.10
Slider Ultimate v2.2.10
2.2.10 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 1.1.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1.0 2.1.1 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 2.2.7 2.2.8 2.2.9
ultimate-slider / assets / js / plugin-deactivation.js
ultimate-slider / assets / js Last commit date
dashboard-review-ask.js 4 years ago ewd-us-admin.js 3 years ago ewd-us-blocks.js 3 years ago ewd-us-helper-install-notice.js 4 years ago ewd-us-welcome-screen.js 4 years ago ewd-us.js 4 years ago jquery.iframetracker.js 4 years ago plugin-deactivation.js 1 month ago ultimate-lightbox.js 4 years ago
plugin-deactivation.js
59 lines
1 jQuery(function($){
2 var $deactivateLink = $('#the-list').find('[data-slug="ultimate-slider"] span.deactivate a'),
3 $overlay = $('#ewd-us-deactivate-survey-ultimate-slider'),
4 $cancelButton = $('#ewd-us-deactivation-cancel'),
5 $form = $overlay.find('form'),
6 formOpen = false;
7 // Plugin listing table deactivate link.
8 $deactivateLink.on('click', function(event) {
9 event.preventDefault();
10 $overlay.css('display', 'table');
11 formOpen = true;
12 $form.find('.ewd-us-deactivate-survey-option:first-of-type input[type=radio]').focus();
13 });
14 // Exit the survey without deactivating or submitting the form
15 $cancelButton.on( 'click', function( event ) {
16 $overlay.css('display', 'none');
17 formOpen = false;
18 });
19 // Survey radio option selected.
20 $form.on('change', 'input[type=radio]', function(event) {
21 event.preventDefault();
22 $form.find('input[type=text], .error').hide();
23 $form.find('.ewd-us-deactivate-survey-option').removeClass('selected');
24 $(this).closest('.ewd-us-deactivate-survey-option').addClass('selected').find('input[type=text]').show();
25 });
26 // Survey Skip & Deactivate.
27 $form.on('click', '.ewd-us-deactivate-survey-deactivate', function(event) {
28 event.preventDefault();
29 location.href = $deactivateLink.attr('href');
30 });
31 // Survey submit.
32 $form.submit(function(event) {
33 event.preventDefault();
34 if (! $form.find('input[type=radio]:checked').val()) {
35 $form.find('.ewd-us-deactivate-survey-footer').prepend('<span class="error">Please select an option below</span>');
36 return;
37 }
38 var data = {
39 code: $form.find('.selected input[type=radio]').val(),
40 install_time: $form.data('installtime'),
41 reason: $form.find('.selected .ewd-us-deactivate-survey-option-reason').text(),
42 details: $form.find('.selected input[type=text]').val(),
43 site: ewd_us_deactivation_data.site_url,
44 plugin: 'Ultimate Slider'
45 }
46 var submitSurvey = $.post('https://www.etoilewebdesign.com/UPCP-Key-Check/Deactivation_Surveys.php', data);
47 submitSurvey.always(function() {
48 location.href = $deactivateLink.attr('href');
49 });
50 });
51 // Exit key closes survey when open.
52 $(document).keyup(function(event) {
53 if (27 === event.keyCode && formOpen) {
54 $overlay.hide();
55 formOpen = false;
56 $deactivateLink.focus();
57 }
58 });
59 });