Autoupdate the schedule

This commit is contained in:
Petko Bordjukov 2014-11-01 04:33:48 +02:00
parent a8bae839e7
commit 64bcc6800b
2 changed files with 1 additions and 1 deletions

View File

@ -15,6 +15,7 @@ var reactive = new Ractive({
}); });
function refreshEvent() { function refreshEvent() {
schedule.update();
reactive.set({pastEvents: schedule.pastEvents(), reactive.set({pastEvents: schedule.pastEvents(),
currentEvent: schedule.currentEvent(), currentEvent: schedule.currentEvent(),
nextEvent: schedule.nextEvent(), nextEvent: schedule.nextEvent(),

View File

@ -71,4 +71,3 @@ $.urlParam = function(name){
} }
var schedule = new Schedule(parseInt($.urlParam('roomId'))); var schedule = new Schedule(parseInt($.urlParam('roomId')));
schedule.update();