From 328d1c8a5353fe54015ff75d5d8d96233f842853 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 1 Oct 2017 18:27:15 +0200 Subject: [PATCH] Dumbfix x2 --- Site/Controls/v5/Base/FileUpload.ascx | 2 +- Site/Scripts/Swarmops-v5.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Site/Controls/v5/Base/FileUpload.ascx b/Site/Controls/v5/Base/FileUpload.ascx index a605d722..7cebc30b 100644 --- a/Site/Controls/v5/Base/FileUpload.ascx +++ b/Site/Controls/v5/Base/FileUpload.ascx @@ -85,7 +85,7 @@ }); - function progressUpdateCallback_<%=this.GuidToken%>(progress) { + function progressUpdateCallback_<%=this.GuidToken%>(progressPercent) { alertify.success(progress); diff --git a/Site/Scripts/Swarmops-v5.js b/Site/Scripts/Swarmops-v5.js index 3afb4083..e098f04b 100644 --- a/Site/Scripts/Swarmops-v5.js +++ b/Site/Scripts/Swarmops-v5.js @@ -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") {