[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [metrics-web/master] Use the browser's date selector for start/end date.



commit dc18a18b7c4dbf5505bf00dcdf5677ebf7e137a8
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Wed Jan 8 14:32:16 2020 +0100

    Use the browser's date selector for start/end date.
    
    Implements #30793.
---
 src/main/resources/web/jsps/graph.jsp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/web/jsps/graph.jsp b/src/main/resources/web/jsps/graph.jsp
index baa7edb..94aa784 100644
--- a/src/main/resources/web/jsps/graph.jsp
+++ b/src/main/resources/web/jsps/graph.jsp
@@ -44,13 +44,13 @@
     <c:if test="${fn:length(start) > 0}">
       <p>
         <label for="start">Start date:</label>
-        <input type="text" name="start" size="10" value="${start[0]}" placeholder="yyyy-mm-dd" id="start">
+        <input type="date" name="start" size="10" value="${start[0]}" placeholder="yyyy-mm-dd" id="start">
       </p>
     </c:if>
     <c:if test="${fn:length(end) > 0}">
       <p>
         <label for="end">End date:</label>
-        <input type="text" name="end" size="10" value="${end[0]}" placeholder="yyyy-mm-dd" id="end">
+        <input type="date" name="end" size="10" value="${end[0]}" placeholder="yyyy-mm-dd" id="end">
       </p>
     </c:if>
     <c:if test="${fn:length(p) > 0}">

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits