From 599f936048484e3d239e8f8ed38d26cff9f74092 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Wed, 11 Mar 2015 15:39:48 +0100 Subject: Fix Startpage-Schedule --- assets/js/lustiges-script.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'assets/js/lustiges-script.js') diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js index 96e9f2c..73e021b 100644 --- a/assets/js/lustiges-script.js +++ b/assets/js/lustiges-script.js @@ -309,7 +309,10 @@ $(function() { updateTimer = 5*1000, /* update display every 5 seconds */ refetchTimer = 10*60*1000, /* re-request current / upcoming program every 10 minutes */ programData = {}, - $lecture = $('.rooms .lecture'); + $lecture = $('.room.has-schedule'), + + /* offset to the browsers realtime (for simulation) */ + offset = $('.js-settings').data('scheduleoffset');; if($lecture.length == 0) @@ -350,7 +353,7 @@ $(function() { }); var s = nextTalk ? new Date(nextTalk.start*1000) : new Date(); - $lecture.find('.'+room) + $lecture.filter('.room-'+room) .find('.current-talk') .removeClass('hidden') .find('.t') -- cgit v1.2.3