X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=LogViewer%2Ftags.html;h=5ad272326679a378f1c7533ab730496892072f68;hb=0e29bd91f2466627a24a515c6efe467676da4b88;hp=c6a7a53adee4319b498963748d22dbde04bcd980;hpb=0581f6a0ddac1b9f609d00acf1f311941d0a498f;p=kancollesniffer%2FKancolleSniffer.git diff --git a/LogViewer/tags.html b/LogViewer/tags.html index c6a7a53..5ad2723 100644 --- a/LogViewer/tags.html +++ b/LogViewer/tags.html @@ -41,7 +41,7 @@ this.on("mount", function() { }); }); -this.enabled = false; +this.enabled = true; var self = this; opts.observable.on("mainTabChanged", function(idx) { @@ -62,7 +62,7 @@ opts.observable.on("mainTabChanged", function(idx) { @@ -792,13 +807,14 @@ this.calcResult = function(data) { if (isNewYear) { endOfYear = date.clone().endOf('year').hour(22).startOf('hour'); if (endOfYear.isSameOrBefore(date)) - endOfYear.add(1, 'year').endOf('year'); + endOfYear.add(1, 'year'); yearExp = lastExp === -1 ? exp : lastExp; } if (isNewMonth) { - endOfMonth = date.clone().endOf('month').hour(22).startOf('hour'); - if (endOfMonth.isSameOrBefore(date)) - endOfMonth.add(1, 'month').endOf('month'); + endOfMonth = date.clone().endOf('month'); + if (date.date() == endOfMonth.date()) + endOfMonth.add(1, 'months').endOf('month'); + endOfMonth.hour(22).startOf('hour'); monthExp = lastExp === -1 ? exp : lastExp; carryOverEo = monthEo * expPerAch / 50000; carryOverAch = (monthExp - yearExp) / 50000;