Skip to content

Commit

Permalink
made ends_at calender to start from current date
Browse files Browse the repository at this point in the history
  • Loading branch information
omkarvijay5 committed Sep 30, 2014
1 parent deb5691 commit c087c12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tavern/templates/tavern/event_form.html
Expand Up @@ -52,6 +52,7 @@
date = new Date()
date.setDate(date.getDate() - 1)
$("#id_starts_at_picker").data("DateTimePicker").setStartDate(date);
$("#id_ends_at_picker").data("DateTimePicker").setStartDate(date);
$("#id_starts_at_picker").change(function(){
date_in_string = $("#id_starts_at").val();
date_in_string = date_in_string.split("-")
Expand Down

0 comments on commit c087c12

Please sign in to comment.