diff --git a/Site/Master-v5.master b/Site/Master-v5.master
index a0f8ecf8..ce92e809 100644
--- a/Site/Master-v5.master
+++ b/Site/Master-v5.master
@@ -72,7 +72,8 @@
window.odometerOptions = {
auto: false, // Don't automatically initialize everything with class 'odometer'
- theme: 'car' // Specify the theme (if you have more than one theme css file on the page)
+ theme: 'car', // Specify the theme (if you have more than one theme css file on the page)
+ duration: 1500 // time to update
};
$(document).ready(function () {
@@ -223,6 +224,14 @@
+
+
<% if (!(this.Page as PageV5Base).IsDashboard)
{ %>
diff --git a/Site/Master-v5.master.cs b/Site/Master-v5.master.cs
index bda4ef25..4a73fb92 100644
--- a/Site/Master-v5.master.cs
+++ b/Site/Master-v5.master.cs
@@ -259,6 +259,9 @@ namespace Swarmops.Frontend
this.MasterLabelBitIdRegisterHeader.Text = Resources.Global.Master_BitIdRegister_Header;
+
+ this.MasterLabelDashboardProfitLoss.Text = String.Format(Resources.Global.Financial_ProfitToDate,
+ CurrentOrganization.Currency.DisplayCode);
}
protected string _cacheVersionMark; // this is just a cache buster for style sheets on new versions
diff --git a/Site/Master-v5.master.designer.cs b/Site/Master-v5.master.designer.cs
index 9a1fba98..cec64c09 100644
--- a/Site/Master-v5.master.designer.cs
+++ b/Site/Master-v5.master.designer.cs
@@ -596,7 +596,7 @@ namespace Swarmops.Frontend {
/// To modify move field declaration from designer file to code-behind file.
///
protected global::Swarmops.Frontend.Controls.Base.ModalDialog ModalMasterEnableBitId;
-
+
///
/// MasterLabelBitIdRegisterHeader control.
///
@@ -605,5 +605,6 @@ namespace Swarmops.Frontend {
/// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label MasterLabelBitIdRegisterHeader;
+ protected global::System.Web.UI.WebControls.Label MasterLabelDashboardProfitLoss;
}
}
diff --git a/Site/Scripts/Swarmops-v5.js b/Site/Scripts/Swarmops-v5.js
index 5554b552..5ab39b59 100644
--- a/Site/Scripts/Swarmops-v5.js
+++ b/Site/Scripts/Swarmops-v5.js
@@ -108,7 +108,11 @@ 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) {
+ window.odometerOptions.duration = 1;
+ }
odoProfitLossToDate.innerHTML = (message.ProfitLossCents / 100.0) + 0.001; // update it; +0.001 needed for %.2f
+ window.odometerOptions = 1500;
}
}
else if (message.MessageType == "SandboxUpdate") {