PageSourceSearch

https://mkpusa.org/wp-content/plugins/wpdatatables/backend/tiers/s…/wdt-custom-divi-js.js?ver=8.0.2

js mkpusa.org collected 2026-10-01 14:35:55 UTC 1,514 bytes, 39 lines download raw bytes

1(function ($) {
2    $(function () {
3
4        // Function to handle the table ID change event and hide the table view dropdown for Woo tables
5        function handleTableChange(selectedTableId) {
6            if (selectedTableId) {
7                $.ajax({
8                    url: wdt_ajax_object.ajaxurl,
9                    type: 'POST',
10                    data: {
11                        action: 'get_table_type_by_id',
12                        table_id: selectedTableId
13                    },
14                    success: function (response) {
15                        var tableType = JSON.parse(response).tableType;
16
17                        if (tableType === 'woo_commerce') {
18                            $('span.et-fb-form__label:contains("Choose table view")')
19                                .closest('.et-fb-form__group')
20                                .hide();
21                        } else {
22                            $('span.et-fb-form__label:contains("Choose table view")')
23                                .closest('.et-fb-form__group')
24                                .show();
25                        }
26                    }
27                });
28            }
29        }
30
31        $(document).on('click', '.select-option-item', function () {
32            let selectedTableId = $(this).data('value');
33            handleTableChange(selectedTableId);
34        });
35
36        let initialTableId = $('#et-fb-id .et-fb-selected-item').data('value');
37        handleTableChange(initialTableId);
38    })
39})(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.