aboutsummaryrefslogtreecommitdiff
path: root/p/scripts/repartition.js
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2016-08-29 19:52:52 +0200
committerGravatar GitHub <noreply@github.com> 2016-08-29 19:52:52 +0200
commit17c8c039df675b3b0f8d88d14f7316a240eabe76 (patch)
tree3dd3da3e8f21b5e82905f756098b86e0d15b3935 /p/scripts/repartition.js
parent92d4ad32c9eb165dee6dc6d4b8cf510428dde9ec (diff)
parentaea7cd78367ef867cdac7082ac1e9f61c4de7e19 (diff)
Merge pull request #1233 from FreshRSS/dev1.5.0
Release 1.5.0
Diffstat (limited to 'p/scripts/repartition.js')
-rw-r--r--p/scripts/repartition.js18
1 files changed, 9 insertions, 9 deletions
diff --git a/p/scripts/repartition.js b/p/scripts/repartition.js
index a391de2f2..be70456fa 100644
--- a/p/scripts/repartition.js
+++ b/p/scripts/repartition.js
@@ -1,4 +1,7 @@
"use strict";
+/* globals Flotr, numberFormat */
+/* jshint globalstrict: true */
+
function initStats() {
if (!window.Flotr) {
if (window.console) {
@@ -19,9 +22,8 @@ function initStats() {
{
grid: {verticalLines: false},
xaxis: {noTicks: 23,
- tickFormatter: function(x) {
- var x = parseInt(x);
- return x + 1;
+ tickFormatter: function(x1) {
+ return 1 + parseInt(x1);
},
min: -0.9,
max: 23.9,
@@ -38,9 +40,8 @@ function initStats() {
{
grid: {verticalLines: false},
xaxis: {noTicks: 6,
- tickFormatter: function(x) {
- var x = parseInt(x);
- return stats.days[x];
+ tickFormatter: function(x2) {
+ return stats.days[parseInt(x2)];
},
min: -0.9,
max: 6.9,
@@ -57,9 +58,8 @@ function initStats() {
{
grid: {verticalLines: false},
xaxis: {noTicks: 12,
- tickFormatter: function(x) {
- var x = parseInt(x);
- return stats.months[(x - 1)];
+ tickFormatter: function(x3) {
+ return stats.months[parseInt(x3) - 1];
},
min: 0.1,
max: 12.9,