403Webshell
Server IP : 162.0.217.223  /  Your IP : 216.73.216.150
Web Server : LiteSpeed
System : Linux premium269.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : mypckeys ( 1539)
PHP Version : 8.1.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/mypckeys/backup/msckey.com/wp-content/plugins/woocommerce-boost-sales/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/mypckeys/backup/msckey.com/wp-content/plugins/woocommerce-boost-sales/js/bundles.js
jQuery(document).ready(function ($) {
    'use strict';
    $('#_wbs_dynamic_price').on('change', function () {
        let $checkbox = $(this);
        if ($checkbox.prop('checked')) {
            $('.wbs-price-info').fadeOut(100);
            $('.wbs-discount-info').fadeIn(200);
        } else {
            $('.wbs-price-info').fadeIn(200);
            $('.wbs-discount-info').fadeOut(100);
        }
    }).trigger('change');

    jQuery('.wbs-wcpb-bundled-items.ui-sortable').sortable();

    var bundled_items_cont = jQuery('#wbs_bundled_product_data .wbs-wcpb-bundled-items'),
        add_bundled_product_btn = jQuery('#wbs-wcpb-add-bundled-product'),
        b_prod_id = jQuery('#wbs-wcpb-bundled-product'),
        items_count = jQuery('#wbs_bundled_product_data .wbs-wcpb-bundled-items .wbs-wcpb-bundled-item').length,
        bundled_product_data_container = jQuery('#wbs_bundled_product_data');
    items_count++;

    add_bundled_product_btn.on('click', function () {
        if (b_prod_id.val() == 0) {
            return;
        }

        var data = {
            action: 'wbs_wcpb_add_product_in_bundle',
            open_closed: 'open',
            post_id: woocommerce_admin_meta_boxes.post_id,
            id: items_count,
            product_id: b_prod_id.val(),
        };

        jQuery.post(woocommerce_admin_meta_boxes.ajax_url, data, function (response) {
            if (response === 'notsimple') {
                alert(ajax_object.free_not_simple);
                bundled_product_data_container.unblock();
                return;
            }
            bundled_items_cont.append(response);
            bundled_items_cont.find('.help_tip').tipTip();
            bundled_product_data_container.unblock();
            b_prod_id.val(0);
            items_count++;
        });
    });
    jQuery('body').on('click', '.wbs-wcpb-remove-bundled-product-item', function () {
        if (confirm('Remove this item from bundle?')) {
            jQuery(this).parent().parent().remove();
        }
    });
});

Youez - 2016 - github.com/yon3zu
LinuXploit