This commit is contained in:
Falkvinge
2017-05-10 10:20:53 +02:00
parent 45a5a50297
commit ead63c35b9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ namespace Swarmops.Frontend.Socket
json ["MessageType"] = json["messageType"] = "AnnualProfitLossCents";
json["ProfitLossCents"] = FrontendLoop.GetOrganizationProfitLossCents(this._authority.Organization).ToString();
json["OrganizationId"] = this._authority.Organization.Identity;
json["Instant"] = 1; // instant update, no odometer rolling for init
json["Instant"] = "1"; // instant update, no odometer rolling for init
this.Send(json.ToString());
}
+1 -1
View File
@@ -108,7 +108,7 @@ function _masterInitializeSocket(authenticationTicket) {
else if (message.MessageType == "AnnualProfitLossCents") {
if (odoProfitLossToDate != undefined) // if there's a P&L odometer on the current page
{
if (message.Instant == 1) {
if (message.Instant == "1") {
window.odometerOptions.duration = 1;
}
odoProfitLossToDate.innerHTML = (message.ProfitLossCents / 100.0) + 0.001; // update it; +0.001 needed for %.2f