Updated Static Site Files
This commit is contained in:
@ -90,7 +90,7 @@ function getTimeCriticality(workItemType, timeCriticality) {
|
||||
return result;
|
||||
}
|
||||
|
||||
function getWorkItems(data) {
|
||||
function getRecords(data) {
|
||||
var workItems = [];
|
||||
var workItem;
|
||||
for (var i = data.length - 1; i > -1; i--) {
|
||||
@ -110,9 +110,25 @@ function getWorkItems(data) {
|
||||
return workItems;
|
||||
}
|
||||
|
||||
function updateSite() {
|
||||
if (window.location.href.indexOf('=LEO') > -1) {
|
||||
document.title = document.title.replace("Infineon", "HiRel (Leominster)");
|
||||
document.getElementById("siteHeader").innerText = "HiRel (Leominster)";
|
||||
}
|
||||
else if (window.location.href.indexOf('=MES') > -1) {
|
||||
document.title = document.title.replace("Infineon", "Mesa");
|
||||
document.getElementById("siteHeader").innerText = "Mesa";
|
||||
}
|
||||
else {
|
||||
document.title = document.title.replace("Infineon", "Infineon");
|
||||
document.getElementById("siteHeader").innerText = "Infineon";
|
||||
}
|
||||
}
|
||||
|
||||
function initIndex(url) {
|
||||
updateSite();
|
||||
$.getJSON(url, { _: new Date().getTime() }, function (data) {
|
||||
var workItems = getWorkItems(data);
|
||||
var workItems = getRecords(data);
|
||||
console.log(data.length);
|
||||
if (data.length > 0)
|
||||
console.log(data[0]);
|
||||
@ -146,8 +162,9 @@ function initIndex(url) {
|
||||
{ key: "Revision", dataType: "number", hidden: true },
|
||||
{ key: "RiskReductionMinusOpportunityEnablement", dataType: "string", hidden: true },
|
||||
{ key: "StartDate", dataType: "string", hidden: true },
|
||||
{ key: "WorkItemType", dataType: "string", hidden: true },
|
||||
{ key: "Violation", dataType: "string", hidden: true },
|
||||
{ key: "WeightedShortestJobFirst", dataType: "number", hidden: true },
|
||||
{ key: "WorkItemType", dataType: "string", hidden: true },
|
||||
],
|
||||
features: [
|
||||
{ name: "Sorting", type: "local" },
|
||||
|
Reference in New Issue
Block a user