diff --git a/views/summary.tpl.html b/views/summary.tpl.html index 41124a3..8c7e127 100644 --- a/views/summary.tpl.html +++ b/views/summary.tpl.html @@ -45,12 +45,12 @@
-
-
@@ -224,6 +224,17 @@ wakapiData.editors = {{ .Editors | json }} wakapiData.languages = {{ .Languages | json }} wakapiData.machines = {{ .Machines | json }} + + document.getElementById("to-date-picker").onchange = function () { + var input = document.getElementById("from-date-picker"); + input.setAttribute("max", this.value); + } + + document.getElementById("from-date-picker").onchange = function () { + var input = document.getElementById("to-date-picker"); + input.setAttribute("min", this.value); + } +