PageSourceSearch

https://www.minocqua.org/includes/public/managed/v_c8155e17_4a75ff…/plugins/common/virtuals/js/custom_forms.js

js minocqua.org collected 2026-09-25 14:25:41 UTC 1,230 bytes, 34 lines download raw bytes

1require(["jquery", "domReady!"], function($) {
2	var rsvpForm = $('#rsvp-container');
3	var submitEventForm = $('#sv_submit_event_form');
4	var calendar = $('.lookup-calHolder');
5	var faCheck = '<i class="fas fa-check"></i>';
6
7	if (location.search.indexOf('action=popupCal') > -1 && calendar.length) {
8		/* This code is excuted when you're in the submit event for calendar popup.
9		   We need to hid everything but the calendar itself. */
10		calendar.addClass('core-styles');
11		calendar.parents().show().addClass('crm-calendar-parent');
12	} else if (rsvpForm.length) {
13		var labels = [];
14		// get header row titles
15		rsvpForm.find('.eventList_headerRow .eventListCell').each(function() {
16			labels.push($(this).html());
17		});
18		rsvpForm.find('.eventListRow').each(function() {
19			$(this).find('.eventListCell').each(function(i) {
20				if (labels[i].toLowerCase() !== 'details') {
21					$(this).attr('data-title', labels[i]);
22				}
23			});
24		});
25	} else if (submitEventForm.length) {
26		// removing inline styles to clean up form
27		submitEventForm.find('p,span,input,li').each(function(i, el) {
28			if ($(el).attr('style') && $(el).attr('type') !== 'file') {
29				$(el).attr('style', '');
30			}
31		});
32	}
33});
34

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.