Dumbfix x2

This commit is contained in:
Rick Falkvinge
2017-10-01 18:27:15 +02:00
parent 4d0cedcda6
commit 328d1c8a53
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -85,7 +85,7 @@
});
function progressUpdateCallback_<%=this.GuidToken%>(progress) {
function progressUpdateCallback_<%=this.GuidToken%>(progressPercent) {
alertify.success(progress);
+4 -2
View File
@@ -116,11 +116,13 @@ function _masterInitializeSocket(authenticationTicket) {
}
}
else if (message.MessageType == "SandboxUpdate") {
if (window["odoLocalParticipation"] != undefined) { // Real ugly accessing specific page elements here, but it's temporary
if (window["odoLocalParticipation"] != undefined) { // Real ugly accessing specific page elements here, but it's temporary
odoLocalParticipation.innerHTML = message.Local;
odoGlobalParticipation.innerHTML = 12345678 + message.Local * 5;
odoActiveParticipation.innerHTML = 123412 + message.Local * 5;
odoProfitLossToDate.innerHTML = (message.Profit / 100.0) + 0.001;
}
if (window["odoProfitLossToDate"] != undefined) {
odoProfitLossToDate.innerHTML = (message.Profit / 100.0) + 0.001;
}
}
else if (message.MessageType == "ProgressUpdate") {