in js/triage.js [42:103]
function run() {
let icsurl = '';
switch (getTeam()) {
case 'media':
document.getElementById('team-select').selectedIndex = 0;
icsurl = TriageConfig.jsonConfig.media_ics;
break;
case 'webrtc':
document.getElementById('team-select').selectedIndex = 1;
icsurl = TriageConfig.jsonConfig.webrtc_ics;
break;
case 'graphics':
document.getElementById('team-select').selectedIndex = 2;
icsurl = TriageConfig.jsonConfig.graphics_ics;
break;
}
let random = Math.floor(Math.random() * 9e9);
icsurl += '?rand=' + random;
console.log("Loading [" + icsurl + "]");
$.ajax({
url: icsurl,
crossDomain:true,
crossOrigin: true,
error: function (a, b, c) {
console.log("ics file load error: " + c);
},
success: function(data) {
// ICS DATA LOADED
// Store ics data in our global data object. See
// Notes.txt for format info.
TriageData = parseICSData(data);
//console.log(TriageData);
let now = new Date();
let currentYear = now.getFullYear();
let year = getYear(now);
// Global that points to the buckets data for the display year.
BugQueries = TriageData[year].data;
// Generates Bugzilla query strings from ics data
let count = setupQueryURLs(true);
// Updates the page title.
displayTitle(year, count);
// Add engineer names, bucket dates, and grayed out '?' buckets.
populateBuckets(year, count);
// Display links for other years and the shedule
displayYearFooter(currentYear, BugQueries);
// Make a single query for all bugs for both lists.
loadBugListDetail();
}
});
}