Test
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user