From e39a3c5a1f46a0a9a8ba64a7de33e0e7a25d2efa Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 26 Dec 2014 01:50:17 +0100 Subject: fix script-errors after closing --- assets/js/lustiges-script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assets') diff --git a/assets/js/lustiges-script.js b/assets/js/lustiges-script.js index 322c69e..48d85ef 100644 --- a/assets/js/lustiges-script.js +++ b/assets/js/lustiges-script.js @@ -360,7 +360,7 @@ $(function() { }); - var s = new Date(nextTalk.start*1000); + var s = nextTalk ? new Date(nextTalk.start*1000) : new Date(); $lecture.find('.'+room) .find('.current-talk') .removeClass('hidden') -- cgit v1.2.3