Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="col-50 graph-date-select-container">
- <input id="graph-date-input" type="date" class="graph-date-select" style="-webkit-appearance: textfield; -moz-appearance: textfield; height: 20px; margin-top: -15px;" onblur="graphUpdate()"/>
- </div>
- function graphUpdate() {
- alert("graphUpdate called.")
- var date = new Date($(this).val());
- var dateString = "" + date.getDay() + "/" + date.getMonth() + "/" + date.getFullYear();
- var url = "{% add_params request.get_full_path period='daily'%}" + "query_param=" + dateString
- window.location.href = url
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement