PluginProbe
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster / 1.7.5
SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster v1.7.5
2.6.0 trunk 1.1.0 1.1.4 1.2.1 1.2.2 1.2.3 1.2.5 1.2.9 1.3.1 1.3.2 1.5.0 1.5.1 1.5.4 1.5.7 1.5.8 1.5.9 1.6.2 1.6.5 1.6.8 1.7.2 1.7.4 1.7.5 1.7.9 1.8.1 All 42 releases
sellkit / assets / dist / js / admin-feedback.js

admin-feedback.js in SellKit – Funnel builder and checkout optimizer for WooCommerce to sell more, faster 1.7.5, at assets/dist/js/admin-feedback.js

48 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
2 "use strict";
3
4 var adminFeedback = function adminFeedback() {
5 var $ = jQuery;
6
7 var showPopup = function showPopup() {
8 var boxWrapper = '<div class="sellkit-deactivation-feedback-box-wrapper"></div>';
9 $(boxWrapper).insertAfter('body');
10 $('#sellkit-deactivate-feedback-dialog-wrapper').appendTo('.sellkit-deactivation-feedback-box-wrapper');
11 $('.sellkit-deactivate-feedback-dialog-input-wrapper .sellkit-deactivate-feedback-dialog-input').on('click', function () {
12 $('.sellkit-deactivate-feedback-dialog-input-wrapper').removeClass('active');
13 $(this).parents('.sellkit-deactivate-feedback-dialog-input-wrapper').addClass('active');
14 });
15 $('.sellkit-deactivate-feedback-cancel-button').on('click', function () {
16 hidePopup();
17 });
18 $('.sellkit-deactivation-feedback-box-wrapper').on('click', function (e) {
19 if (e.target.className === 'sellkit-deactivation-feedback-box-wrapper') {
20 hidePopup();
21 }
22 });
23 $('#sellkit-deactivate-feedback-dialog-form').on('submit', function (e) {
24 e.preventDefault();
25 $('.sellkit-deactivate-feedback-footer-spinner-icon').removeClass('sellkit-hide');
26 $('.sellkit-deactivate-feedback-footer').find('input').attr('disabled', 'disabled');
27 wp.ajax.post('sellkit_deactivation_feedback', $('#sellkit-deactivate-feedback-dialog-form').serialize()).done(function () {
28 window.location.href = $('#deactivate-sellkit').attr('href');
29 });
30 });
31 };
32
33 var hidePopup = function hidePopup() {
34 $('.sellkit-deactivation-feedback-box-wrapper').addClass('sellkit-hide');
35 };
36
37 $('#deactivate-sellkit').on('click', function (e) {
38 e.preventDefault();
39 showPopup();
40 });
41 };
42
43 document.addEventListener('DOMContentLoaded', function () {
44 adminFeedback();
45 });
46
47 },{}]},{},[1]);
48