sbd-npm 1.3.92 → 1.3.93
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/summary_daily.js +9 -2
package/package.json
CHANGED
package/summary_daily.js
CHANGED
@@ -448,9 +448,16 @@ $(function () {
|
|
448
448
|
end_date: $("#index_hist_modal_end_date").val()
|
449
449
|
};
|
450
450
|
Util.post("/action", payload, function (j) {
|
451
|
-
let _html = [];
|
451
|
+
let _html = [], latest_date = 0;
|
452
452
|
j["data"].forEach(function (item) {
|
453
|
-
|
453
|
+
latest_date = Math.max(latest_date, item["date"]);
|
454
|
+
});
|
455
|
+
j["data"].forEach(function (item) {
|
456
|
+
if (item["date"] === latest_date) {
|
457
|
+
_html.push("<tr class='info'>");
|
458
|
+
} else {
|
459
|
+
_html.push("<tr>");
|
460
|
+
}
|
454
461
|
_html.push("<td>", Util.seconds_to_format(item["date"], "%Y-%m-%d"), "</td>");
|
455
462
|
_html.push("<td>", item["open"], "</td>");
|
456
463
|
_html.push("<td>", item["low"], "</td>");
|