1function openCalendarPublicSubmissionModal (calendarID, eventID, isCopy, order, updatePanelID, isSubmit) { 2 var title = null; 3 var className = null; 4 5 if (isSubmit) { 6 title = ' Event Submission'; 7 className = 'submitEvent'; 8 } else 9 className = 'liveEdit calendar'; 10 11 var url = '/common/modules/Calendar/calendarLiveEdit.aspx?calendarID=' + calendarID + '&eventID=' + eventID + '&order=' + order + '&updatePanelID=' + updatePanelID; 12 13 if (isSubmit) 14 url = url + '&submit=1'; 15 if (isCopy) 16 url = url + '&strPage=itemCopy'; 17 else 18 url = url + '&strPage=itemForm'; 19 20 openCpModal({ 21 title: title, 22 className: className, 23 isFrontEnd: true, 24 useIframe: true, 25 draggable: true, 26 url: url 27 }); 28} 29 30function openCalendarIcalEventDetailsModal(startTime, endTime, location, description) { 31 var title = "Event Details"; 32 var className = 'modalContainer MVC iCalEventDetailsModal'; 33 34 35 var timeDiv ; 36 var start = new Date(startTime); 37 var end = new Date(endTime); 38 39 var startDay = (start).toLocaleDateString(undefined, { month: 'long', day: 'numeric' }); 40 var endDay = (end).toLocaleDateString(undefined, { month: 'long', day: 'numeric' }); 41 42 var dateDiv = startDay === endDay ? `${startDay}` : `<span> ${startDay} â ${endDay} </span>`; 43 44 if (start.getHours() == 0 && start.getMinutes() == 0) { 45 timeDiv = "All Day"; 46 } else { 47 timeDiv = start.toLocaleTimeString(undefined, { hour: '2-digit', minute: '2-digit' }) + " - " + end.toLocaleTimeString(undefined, { hour: '2-digit', minute: '2-digit' }); 48 } 49 50 51 var htmlContent = 52 '<div id="calendarIcalEventDetailsModal"><ol class= "cpForm" ><li class="left"><div class="label">Date</div><div id="dateDiv">' + 53 dateDiv + 54 '</div></li><li class="left"><div class="label">Time</div><div id="timeDiv">' + 55 timeDiv + '</div></li>'; 56 57 if (location) { 58 htmlContent += '<li class="left location"><div class="label">Location</div><div id="locationDiv"> ' + 59 location + 60 '</div></li>'; 61 } 62 if (description) { 63 htmlContent += '<li class="left description"><div class="label">Description</div><div class="icalDescription" id="icalDescription">' + 64 description + 65 '</div></li></ol></div >'; 66 } 67 68 openCpModal({ 69 title: title, 70 className: className, 71 htmlContent: htmlContent, 72 elementID: 'calendarIcalEventDetailsModal', 73 isFrontEnd: true, 74 draggable: true, 75 async: false 76 }); 77 function daysIntoYear(date) { 78 return (Date.UTC(date.getFullYear(), date.getMonth(), date.getDate()) - Date.UTC(date.getFullYear(), 0, 0)) / 24 / 60 / 60 / 1000; 79 } 80 $('div.icalDescription').urlToLink({ target: '_blank' }); 81}
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.