Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. <div class="col-50 graph-date-select-container">
  2. <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()"/>
  3. </div>
  4.  
  5.  
  6. function graphUpdate() {
  7. alert("graphUpdate called.")
  8. var date = new Date($(this).val());
  9.  
  10. var dateString = "" + date.getDay() + "/" + date.getMonth() + "/" + date.getFullYear();
  11.  
  12. var url = "{% add_params request.get_full_path period='daily'%}" + "query_param=" + dateString
  13. window.location.href = url
  14. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement