− and - are not the same character in DOM classes
This commit is contained in:
@@ -54,7 +54,7 @@
|
||||
$('#imageLoadIndicator').show();
|
||||
$('div.datagrid').css('opacity', 0.4);
|
||||
|
||||
$('#tableProfitLoss').treegid('reload');
|
||||
//$('#tableProfitLoss').treegrid('reload');
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
$('#imageLoadIndicator').show();
|
||||
$('div.datagrid').css('opacity', 0.4);
|
||||
|
||||
$('#tableAnnualReport').treegid('reload');
|
||||
//$('#tableAnnualReport').treegrid('reload');
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -118,14 +118,20 @@ namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
if (expanded || treeValue != 0 && singleValue == 0)
|
||||
{
|
||||
return string.Format (CultureInfo.CurrentCulture,
|
||||
"\"<span class='annualreportdata-collapsed-{0}' " + (expanded? "style='display:none'": "") + ">" + sigma + " {1:" + format + "}</span><span class='annualreportdata-expanded-{0}' " + (!expanded ? "style='display:none'" : "") + "> </span>\"",
|
||||
accountId, treeValue/100.00)
|
||||
.Replace("---", "<span style='color:#CCC'>—</span>")
|
||||
.Replace("-", "−");
|
||||
"\"<span class='annualreportdata-collapsed-{0}' " + (expanded? "style='display:none'": "") + ">" + sigma + " " + FormatSingleString(treeValue, format) + "</span>" +
|
||||
"<span class='annualreportdata-expanded-{0}' " + (!expanded ? "style='display:none'" : "") + "> </span>\"",
|
||||
accountId);
|
||||
}
|
||||
return string.Format (CultureInfo.CurrentCulture,
|
||||
"\"<span class='annualreportdata-collapsed-{0}'>" + sigma + " {1:" + format + "}</span><span class='annualreportdata-expanded-{0}' style='display:none'>{2:" + format + "}</span>\"",
|
||||
accountId, treeValue/100.0, singleValue/100.0)
|
||||
return string.Format(CultureInfo.CurrentCulture,
|
||||
"\"<span class='annualreportdata-collapsed-{0}'>" + sigma + " " + FormatSingleString(treeValue, format) + " " + "</span>" +
|
||||
"<span class='annualreportdata-expanded-{0}' style='display:none'>" + FormatSingleString(singleValue, format) + "</span>\"",
|
||||
accountId);
|
||||
|
||||
}
|
||||
|
||||
private string FormatSingleString(Int64 centsValue, string format = "N0")
|
||||
{
|
||||
return String.Format("{0:" + format + "}", centsValue / 100.0)
|
||||
.Replace("---", "<span style='color:#CCC'>—</span>")
|
||||
.Replace("-", "−");
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
$('#imageLoadIndicator').show();
|
||||
$('div.datagrid').css('opacity', 0.4);
|
||||
|
||||
$('#tableProfitLoss').treegid('reload');
|
||||
//$('#tableProfitLoss').treegrid('reload');
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user