PageSourceSearch

https://ccpmb.fr/wp-content/plugins/job-manager/js/display.js?ver=0.7.25

js ccpmb.fr collected 2026-10-02 15:07:49 UTC 1,232 bytes, 49 lines download raw bytes

1function jobman_apply_filter() {
2	var ii, field, value, type;
3	var empty = new Array();
4	for( ii = 0; ii < jobman_mandatory_ids.length; ii++ ) {
5		field = jQuery('[name^="jobman-field-' + jobman_mandatory_ids[ii] + '"]');
6		
7		// jQuery 1.6 introduces .prop(), and breaks .attr() backwards compatibility
8		// TODO: Remove the .attr() code when we stop suporting jQuery < 1.6
9		if( typeof field.prop == 'function' ) {
10			value = field.prop('value');
11			type = field.prop('type');
12		}
13		else {
14			value = field.attr('value');
15			type = field.attr('type');
16		}		
17		
18		if( 1 == field.length && '' == value ) {
19			empty.push( jobman_mandatory_labels[ii] );
20		}
21		
22		if( 'radio' == type || 'checkbox' == type ) {
23			var checked = false;
24			
25			for( var jj = 0; jj < field.length; jj++ ) {
26				if( field[jj].checked ) {
27					checked = true;
28					break;
29				}
30			}
31			
32			if( ! checked ) {
33				empty.push( jobman_mandatory_labels[ii] );
34			}
35		}
36	}
37	
38	if( empty.length > 0 ) {
39		var error = jobman_strings['apply_submit_mandatory_warning'] + ":\n";
40		for( ii = 0; ii < empty.length; ii++ ) {
41			error += empty[ii] + "\n";
42		}
43		alert( error );
44		return false;
45	}
46	else {
47		return true;
48	}
49}

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.