File "admin.js"

Full Path: /home/vantageo/public_html/cache/.wp-cli/wp-content/plugins/woocommerce-products-filter/ext/export_import/js/admin.js
File size: 835 bytes
MIME-type: text/plain
Charset: utf-8

"use strict";
jQuery('#woof_get_export').on('click', function () {
    jQuery(this).hide();
    var data = {
        action: "woof_get_export_data"
    };
    jQuery.post(ajaxurl, data, function (answer) {
        jQuery('#woof_export_settings').text(answer);
    });
});

jQuery('#woof_do_import').on('click', function () {
    var data_import = jQuery('#woof_import_settings').val();
    if (!data_import) {
        alert(woof_imp_exp_vars.empty);
        return;
    }

    if (confirm(woof_imp_exp_vars.sure)) {
        var data = {
            action: "woof_do_import_data",
            import_value: data_import
        };
        jQuery.post(ajaxurl, data, function (answer) {
            jQuery('#woof_do_import').after("<p>" + answer + "</p>");
            alert(answer);
            location.reload();
        });

    }

});