Nancy
This commit is contained in:
@ -67,23 +67,24 @@ function getNotifications(x, aggregation) {
|
||||
else {
|
||||
result = '';
|
||||
aggregation.Notifications.forEach(element => {
|
||||
const username = element.username == null ? 'user' : element.username;
|
||||
if (element.value === 1) {
|
||||
result += 'Highest ' + element.RemoteIpAddress + '|';
|
||||
result += 'Highest ' + username + '|';
|
||||
}
|
||||
else if (element.value === 2) {
|
||||
result += 'High ' + element.RemoteIpAddress + '|';
|
||||
result += 'High ' + username + '|';
|
||||
}
|
||||
else if (element.value === 3) {
|
||||
result += 'Medium ' + element.RemoteIpAddress + '|';
|
||||
result += 'Medium ' + username + '|';
|
||||
}
|
||||
else if (element.value === 4) {
|
||||
result += 'Low ' + element.RemoteIpAddress + '|';
|
||||
result += 'Low ' + username + '|';
|
||||
}
|
||||
else if (element.value === 5) {
|
||||
result += 'Lowest ' + element.RemoteIpAddress + '|';
|
||||
result += 'Lowest ' + username + '|';
|
||||
}
|
||||
else {
|
||||
result += element.value + ' ' + element.RemoteIpAddress + '|';
|
||||
result += element.value + ' ' + username + '|';
|
||||
}
|
||||
});
|
||||
result = result.substring(0, result.length - 1);
|
||||
@ -191,32 +192,32 @@ function sendValue(fromHtml, element, page, id) {
|
||||
if (fromHtml && notification.value !== "9") {
|
||||
$("#AllTextarea").hide();
|
||||
document.getElementById('AllTextarea').value = '';
|
||||
// $.post(_apiUrl + "save", notification)
|
||||
// .done(function (msg) {
|
||||
// console.log("Posted value of " + notification.value + " for " + id + " on page " + page + " " + msg);
|
||||
// })
|
||||
// .fail(function (_, textStatus, _) {
|
||||
// alert(textStatus);
|
||||
// });
|
||||
if (!_connectionHubStartDone) {
|
||||
alert("Error data not sent!");
|
||||
}
|
||||
else {
|
||||
if (_chat.connection.lastError != undefined)
|
||||
alert("Last Error:\r\n\r\n" + _chat.connection.lastError);
|
||||
_chat.server.notifyAll(notification)
|
||||
.done(function () {
|
||||
console.log("Posted value of " + notification.value + " for " + id + " on page " + page);
|
||||
})
|
||||
.fail(function (errorThrown) {
|
||||
if (errorThrown == undefined || errorThrown.message == undefined || errorThrown.stack == undefined) {
|
||||
alert("Error posting!");
|
||||
}
|
||||
else {
|
||||
alert(errorThrown.message + "\r\n\r\n" + errorThrown.stack);
|
||||
}
|
||||
});
|
||||
}
|
||||
$.post(_apiUrl, notification)
|
||||
.done(function (msg) {
|
||||
console.log("Posted value of " + notification.value + " for " + id + " on page " + page + " " + msg);
|
||||
if (!_connectionHubStartDone) {
|
||||
console.warn("Error data not sent!");
|
||||
}
|
||||
else {
|
||||
if (_chat.connection.lastError != undefined)
|
||||
console.warn("Last Error:\r\n\r\n" + _chat.connection.lastError);
|
||||
_chat.server.notifyAll(notification)
|
||||
.done(function () {
|
||||
console.log("Posted value of " + notification.value + " for " + id + " on page " + page);
|
||||
})
|
||||
.fail(function (errorThrown) {
|
||||
if (errorThrown == undefined || errorThrown.message == undefined || errorThrown.stack == undefined) {
|
||||
console.warn("Error posting!");
|
||||
}
|
||||
else {
|
||||
console.warn(errorThrown.message + "\r\n\r\n" + errorThrown.stack);
|
||||
}
|
||||
});
|
||||
}
|
||||
})
|
||||
.fail(function (_, textStatus, _) {
|
||||
console.warn(textStatus);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -391,7 +392,7 @@ function updateWorkItem(b, r, t, c, e, w, page, workItem) {
|
||||
aggregation = workItem.Effort;
|
||||
}
|
||||
if (x == undefined)
|
||||
alert("Error with page!");
|
||||
console.warn("Error with page!");
|
||||
else {
|
||||
$('#' + x.page + workItem.Id).text('!' + myRound(aggregation.FibonacciAverage, 100));
|
||||
if (workItem.WeightedShortestJobFirst != undefined) {
|
||||
@ -447,7 +448,7 @@ function setupSignalR(b, r, t, c, e, w, signalRUrl) {
|
||||
$.connection.hub.url = signalRUrl;
|
||||
_chat = $.connection.weightedShortestJobFirstHub;
|
||||
if (_chat == undefined || _chat.server == undefined) {
|
||||
alert('Error within handshake!');
|
||||
console.warn('Error within handshake!');
|
||||
}
|
||||
else {
|
||||
_chat.client.updateWorkItem = function (page, workItem) {
|
||||
@ -461,10 +462,10 @@ function setupSignalR(b, r, t, c, e, w, signalRUrl) {
|
||||
.fail(function (errorThrown) {
|
||||
_connectionHubStartDone = false;
|
||||
if (errorThrown == undefined || errorThrown.message == undefined || errorThrown.stack == undefined) {
|
||||
alert("Error starting conection!");
|
||||
console.warn("Error starting connection!");
|
||||
}
|
||||
else {
|
||||
alert(errorThrown.message + "\r\n" + errorThrown.stack);
|
||||
console.warn(errorThrown.message + "\r\n" + errorThrown.stack);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -17061,8 +17062,8 @@ if (typeof document == 'undefined') {
|
||||
const apiUrl = "https://eaf-dev.mes.infineon.com/api/v1/ado/";
|
||||
const windowLocationHRef = "https://eaf-dev.mes.infineon.com/html/cod.html?site=MES";
|
||||
const workItems = {
|
||||
a: "https://eaf-dev.mes.infineon.com/markdown/bugs-features-with-parents.json?v=2025-01-22-10-49",
|
||||
b: "https://eaf-dev.mes.infineon.com/markdown/{}.json?v=2025-01-22-10-49"
|
||||
a: "https://eaf-dev.mes.infineon.com/markdown/bugs-features-with-parents.json?v=2025-04-10-15-59",
|
||||
b: "https://eaf-dev.mes.infineon.com/markdown/{}.json?v=2025-04-10-15-59"
|
||||
};
|
||||
const b = {
|
||||
page: "business",
|
||||
|
Reference in New Issue
Block a user