From d3ac8a9781538e451e9503578fccd7a0dd4d93da Mon Sep 17 00:00:00 2001 From: Kazuhiro Fujieda Date: Sun, 17 Dec 2017 12:15:11 +0900 Subject: [PATCH] =?utf8?q?=E6=88=A6=E6=9E=9C=E5=A0=B1=E5=91=8A=E6=9B=B8?= =?utf8?q?=E3=81=A7=E9=81=B8=E6=8A=9E=E3=81=97=E3=81=9F=E6=9C=9F=E9=96=93?= =?utf8?q?=E3=81=A8=E8=A1=A8=E7=A4=BA=E3=81=8C=E9=A3=9F=E3=81=84=E9=81=95?= =?utf8?q?=E3=81=86=E3=81=93=E3=81=A8=E3=81=8C=E3=81=82=E3=82=8B=E3=81=AE?= =?utf8?q?=E3=82=92=E7=9B=B4=E3=81=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- LogViewer/tags.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LogViewer/tags.html b/LogViewer/tags.html index a7de29c..8424f79 100644 --- a/LogViewer/tags.html +++ b/LogViewer/tags.html @@ -793,12 +793,14 @@ opts.observable.on("mainTabChanged", function(idx) { }); this.months = []; +this.selectedIndex = 0; this.monthChange = function(event) { if (event.target.selectedIndex === 0) { self.show(); return; } + this.selectedIndex = event.target.selectedIndex; var dt = $('#achivement_table').DataTable(); dt.clear(); dt.rows.add(this.result[event.target.value]).draw(); @@ -974,8 +976,8 @@ this.show = function(data) { this.update(); var dt = $('#achivement_table').DataTable(); dt.clear(); - dt.rows.add(this.result[this.months[0]]).draw(); - this.showChart(this.months[0]); + dt.rows.add(this.result[this.months[this.selectedIndex]]).draw(); + this.showChart(this.months[this.selectedIndex]); }; -- 2.11.0