PageSourceSearch

https://westportindianabusinesses.org/wp-content/plugins/directori…/admin/js/admin.js?ver=2.2

js westportindianabusinesses.org collected 2026-10-09 22:00:10 UTC 3,286 bytes, 100 lines download raw bytes

1;(function ($) {
2    'use strict';
3
4    $(function () {
5        setTimeout(function () {
6            $(".at_biz_dir-linking_type").select2({
7                allowClear: true,
8                tags: false,
9                maximumSelectionLength: 100,
10                width: '100%',
11                tokenSeparators: [","],
12                ajax: {
13                    url: DIRLINK.ajaxUrl,
14                    data: function (params) {
15                        var query = {
16                            search: params.term,
17                            type: $(this).attr("data-type"),
18                            action: DIRLINK.action
19                        }
20
21                        return query;
22                    },
23                    processResults: function (response) {
24                        if (!response.success) {
25                            response.data = [{
26                                id: -1,
27                                text: 'Not found',
28                            }];
29                        }
30
31                        return {
32                            results: response.data
33                        };
34                    }
35                }
36            });
37        }, 2000);
38
39        $(".at_biz_dir-linking_type").select2({
40            width: '100%',
41            ajax: {
42                url: DIRLINK.ajaxUrl,
43                data: function (params) {
44                    var query = {
45                        action: DIRLINK.action,
46                        type: $(this).attr("data-type"),
47                        search: params.term,
48                    }
49
50                    return query;
51                },
52                processResults: function (response) {
53                    if (!response.success) {
54                        response.data = [{
55                            id: -1,
56                            text: 'Not found',
57                        }];
58                    }
59
60                    return {
61                        results: response.data
62                    };
63                }
64            }
65        });
66
67        $('body').on('change', 'select[name="directory_type"]', function () {
68            setTimeout(function () {
69                $(".at_biz_dir-linking_type").select2({
70                    width: '100%',
71                    ajax: {
72                        url: DIRLINK.ajaxUrl,
73                        data: function (params) {
74                            var query = {
75                                search: params.term,
76                                type: $(this).attr("data-type"),
77                                action: DIRLINK.action
78                            }
79
80                            return query;
81                        },
82                        processResults: function (response) {
83                            if (!response.success) {
84                                response.data = [{
85                                    id: -1,
86                                    text: 'Not found',
87                                }];
88                            }
89
90                            return {
91                                results: response.data
92                            };
93                        }
94                    }
95                });
96            }, 1000);
97        });
98
99    });
100}(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.