Skip to content

Commit 26f8a0a

Browse files
committed
Removed past events from events calendar
1 parent b2f6853 commit 26f8a0a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

assets/scripts/main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ var Events = {
1818
'path' : '/calendar/v3/calendars/coderit.public@gmail.com/events',
1919
'callback' : Events.displayEvents,
2020
'orderBy' : 'startTime',
21+
'params' : {
22+
'timeMin': (new Date()).toISOString(),
23+
},
2124
'singleEvents' : true
2225
});
2326
},
@@ -89,4 +92,4 @@ var Events = {
8992
$('.event-page-nav').on('click', Events.changeEventPage);
9093
$('#event-list').css('minHeight', $('#event-list').height());
9194
}
92-
}
95+
}

0 commit comments

Comments
 (0)