aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRahiel Kasim <rahielkasim@gmail.com>2018-11-29 18:04:52 +0100
committerRahiel Kasim <rahielkasim@gmail.com>2018-11-29 18:04:52 +0100
commit00dce79f65ed0a06130dddd41be2aa123efffa06 (patch)
tree81ffffc887729c5357a59335f874bbae024f20d2
parentd482f6cc81f2556138b9299d2594f32cedb1cf0c (diff)
website: fix selecting custom period for keyword page
-rw-r--r--hortiradar/website/keyword.ts3
-rw-r--r--hortiradar/website/package.json8
2 files changed, 5 insertions, 6 deletions
diff --git a/hortiradar/website/keyword.ts b/hortiradar/website/keyword.ts
index 08269e9..77f776e 100644
--- a/hortiradar/website/keyword.ts
+++ b/hortiradar/website/keyword.ts
@@ -292,8 +292,7 @@ function pickPeriod() {
time_24hr: true,
weekNumbers: true,
};
- let startPick = flatpickr("#start", options);
- let endPick = flatpickr("#end", options);
+ let [startPick, endPick] = flatpickr(".flatpickr", options);
document.getElementById("analyseCustomPeriodButton").onclick = function () {
let startDate = startPick.selectedDates[0];
diff --git a/hortiradar/website/package.json b/hortiradar/website/package.json
index 40eedf8..4a061e1 100644
--- a/hortiradar/website/package.json
+++ b/hortiradar/website/package.json
@@ -14,14 +14,14 @@
"@types/d3": "^4.12.0",
"@types/googlemaps": "^3.30.16",
"@types/jquery": "^2.0.45",
- "@types/lodash": "^4.14.117",
+ "@types/lodash": "^4.14.118",
"@types/node": "^9.3.0",
"@types/twitter": "0.0.28",
- "awesome-typescript-loader": "^3.4.1",
+ "awesome-typescript-loader": "^5.2.1",
"font-awesome": "^4.7.0",
"source-map-loader": "^0.2.4",
- "typescript": "^3.1.5",
- "webpack": "^4.23.1",
+ "typescript": "^3.1.6",
+ "webpack": "^4.26.1",
"webpack-cli": "^3.1.2"
},
"dependencies": {