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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/summary_daily.js +9 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbd-npm",
3
- "version": "1.3.92",
3
+ "version": "1.3.93",
4
4
  "description": "Stock Big Data",
5
5
  "main": "index.js",
6
6
  "scripts": {
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
- _html.push("<tr>");
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>");