PageSourceSearch

https://criugm.qc.ca/wp-content/plugins/criugm_intranet/js/bobby.js?ver=2026100272521

js criugm.qc.ca collected 2026-10-02 11:26:14 UTC 1,293 bytes, 59 lines download raw bytes

1(function($){
2
3	$(document).ready(function(){
4
5		$('.ajax-form').submit(function(e){
6			e.preventDefault();
7
8			var form = $(this);
9
10			form.addClass('loading');
11			form.find('.form-message').remove();
12
13			var form_data = new FormData();
14			form_data.append('action', form.attr('data-action') );
15			form.serializeArray().reduce(function (obj, item) {
16				form_data.append(item.name, item.value);
17			}, {});
18
19
20			$.ajax({
21				url: window.ajax_url,
22				data: form_data,
23				type: "POST",
24				processData: false,
25				contentType: false,
26				success: function (r, textStatus, jqXHR) {
27					form.removeClass('loading');
28
29					if(r.success) {
30						if (r.data.type == 'refresh') {
31							window.location.reload();
32						}
33
34						if (r.data.type == 'message') {
35							form.prepend('<div class="form-message">' + r.data.message + '</div>');
36							form.find('fieldset, button').remove();
37						}
38
39						if (r.data.type == 'message-redirect') {
40							form.prepend('<div class="form-message">' + r.data.message + '</div>');
41							form.find('fieldset, button').remove();
42
43							setTimeout(function(){
44								window.location.href = r.data.url;
45							}, 3000);
46						}
47
48					} else {
49
50						form.prepend('<div class="form-message">' + r.data + '</div>');
51					}
52				}
53			});
54		})
55
56	});
57
58})(jQuery);
59

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.