Update the start and end date of the calendar (displayed era).

This commit is contained in:
Daru13 2018-11-22 22:42:31 +01:00
parent 2699573913
commit 12534ff2da

View file

@ -13,8 +13,8 @@
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(() => { $(document).ready(() => {
let cal = new Calendar({ let cal = new Calendar({
startDate: new Date(2018, 11, 1, 8), startDate: new Date(2018, 10, 30, 8),
endDate: new Date(2018, 11, 2, 18), endDate: new Date(2018, 11, 2, 6),
subscriptionURLFormat: "{% url "event:enrol_activity" 999999 %}?ajax=json", subscriptionURLFormat: "{% url "event:enrol_activity" 999999 %}?ajax=json",
csrfToken: $(".planning [name=csrfmiddlewaretoken]").val() csrfToken: $(".planning [name=csrfmiddlewaretoken]").val()
}); });