1require(["jquery", "domReady!"], function($) { 2 var rsvpForm = $('#rsvp-container'); 3 var rfpForm = $("#rfpForm"); 4 var submitEventForm = $('#sv_submit_event_form'); 5 var simpleForm = $('form.simpleForm'); 6 var calendar = $('.lookup-calHolder'); 7 var faCheck = '<i class="fas fa-check"></i>'; 8 9 if (location.search.indexOf('action=popupCal') > -1 && calendar.length) { 10 /* This code is excuted when you're in the submit event for calendar popup. 11 We need to hid everything but the calendar itself. */ 12 calendar.addClass('core-styles'); 13 calendar.parents().show().addClass('crm-calendar-parent'); 14 } else if (rfpForm.length) { 15 rfpForm.find('.ui-datepicker-trigger').each(function() { 16 $(this).parent().wrapInner('<span class="cal-wrapper"></span>'); 17 }); 18 } else if (simpleForm.length) { 19 simpleForm.each(function() { 20 var form = $(this); 21 var sideColHtml = '<div class="medium-3 columns"></div>'; 22 var captcha = form.find('.captcha'); 23 form.children('h3,p').each(function() { 24 $(this).wrap('<div class="row"><div class="medium-9 columns"></div></div>'); 25 $(this).parent().parent().prepend(sideColHtml); 26 }); 27 captcha.parent().prepend(sideColHtml); 28 }); 29 } else if (rsvpForm.length) { 30 var labels = []; 31 // get header row titles 32 rsvpForm.find('.eventList_headerRow .eventListCell').each(function() { 33 labels.push($(this).html()); 34 }); 35 rsvpForm.find('.eventListRow').each(function() { 36 $(this).find('.eventListCell').each(function(i) { 37 if (labels[i].toLowerCase() !== 'details') { 38 $(this).attr('data-title', labels[i]); 39 } 40 }); 41 }); 42 } else if (submitEventForm.length) { 43 // removing inline styles to clean up form 44 submitEventForm.find('p,span,input,li').each(function(i, el) { 45 if ($(el).attr('style') && $(el).attr('type') !== 'file') { 46 $(el).attr('style', ''); 47 } 48 }); 49 } 50}); 51
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.