PageSourceSearch

https://nbs.gov.so/wp-content/plugins/pro-pack-for-wp-job-openings/assets/js/public/job-block.js?ver=4.0.8

js nbs.gov.so collected 2026-09-24 18:47:19 UTC 3,293 bytes, 102 lines download raw bytes

1jQuery(function($) {
2    $(document).on('awsm_block_collect_checkbox_filters', function(event, wpData, $filterForm) {
3        var specsList = {};
4        $filterForm.find('.awsm-filter-checkbox:checked').each(function() {
5            var $checkbox = $(this);
6            var taxonomy = $checkbox.data('taxonomy');
7            var termId   = $checkbox.data('term-id');
8            if (taxonomy && termId) {
9                if (!specsList[taxonomy]) specsList[taxonomy] = [];
10                specsList[taxonomy].push(termId);
11            }
12        });
13        for (var taxonomy in specsList) {
14            if (specsList.hasOwnProperty(taxonomy)) {
15                specsList[taxonomy].forEach(function(termId) {
16                    wpData.push({
17                        name: 'awsm_job_specs_list[' + taxonomy + '][]',
18                        value: termId
19                    });
20                });
21            }
22        }
23    });
24
25    $(document).on('awsmJobBlockListingsData', function(event,parsedListingsAttrs) {
26        parsedListingsAttrs.push('position_filling');
27		parsedListingsAttrs.push('featured_image_size');
28		 parsedListingsAttrs.push('excluded_jobs');
29    });
30    
31    $(document).on('awsmJobBlockFiltersFormData', function(event,$wrapper,formData) {
32        var position_filling    = $wrapper.data('position_filling'); 
33		var featured_image_size = $wrapper.data('featured_image_size'); 
34		var excluded_jobs	 	= $wrapper.data('excluded_jobs'); 
35
36		if (typeof position_filling !== 'undefined') {
37			formData.push({
38				name: 'position_filling',
39				value: position_filling
40			});
41		}
42
43		if (typeof featured_image_size !== 'undefined') {
44			formData.push({
45				name: 'featured_image_size',
46				value: featured_image_size
47			});
48		}
49
50		if (typeof excluded_jobs !== 'undefined') {
51			formData.push({
52				name: 'excluded_jobs',
53				value: excluded_jobs
54			});
55		}
56
57		var selected_terms = $wrapper.data('awsmSelectedTerms');
58		if (selected_terms) {
59			var stValue = typeof selected_terms === 'string' ? selected_terms : JSON.stringify(selected_terms);
60			if (stValue && stValue !== '{}' && stValue !== '[]') {
61				formData.push({ name: 'awsm_selected_terms', value: stValue });
62			}
63		}
64
65    });
66
67    $(document).on('awsmjobs_block_load_more', function(event,$listingsContainer,wpData) { 
68        var position_filling = $listingsContainer.data('position_filling'); 
69		var featured_image_size = $listingsContainer.data('featured_image_size'); 
70		var excluded_jobs = $listingsContainer.data('excluded_jobs'); 
71
72		if (typeof position_filling !== 'undefined') {
73			wpData.push({
74				name: 'position_filling',
75				value: position_filling
76			});
77		}
78
79		if (typeof featured_image_size !== 'undefined') {
80			wpData.push({
81				name: 'featured_image_size',
82				value: featured_image_size
83			});
84		}
85
86		if (typeof excluded_jobs !== 'undefined') {
87			wpData.push({
88				name: 'excluded_jobs',
89				value: excluded_jobs
90			});
91		}
92
93		var selected_terms_lm = $listingsContainer.data('awsmSelectedTerms');
94		if (selected_terms_lm) {
95			var stValueLm = typeof selected_terms_lm === 'string' ? selected_terms_lm : JSON.stringify(selected_terms_lm);
96			if (stValueLm && stValueLm !== '{}' && stValueLm !== '[]') {
97				wpData.push({ name: 'awsm_selected_terms', value: stValueLm });
98			}
99		}
100
101    });
102});

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.