From ab5950120897f33975bee65644787bccb9ab74b6 Mon Sep 17 00:00:00 2001 From: Milan Date: Sat, 13 Feb 2021 13:00:30 +0100 Subject: [PATCH] calendar.js: check null --- website/agenda/planung/js/calendar.js | 1 + 1 file changed, 1 insertion(+) diff --git a/website/agenda/planung/js/calendar.js b/website/agenda/planung/js/calendar.js index 13b6ab5..1114193 100644 --- a/website/agenda/planung/js/calendar.js +++ b/website/agenda/planung/js/calendar.js @@ -947,6 +947,7 @@ function hexToRgbA(hex){ function adjustColors(){ var elem = $('.schedule').get(0); + if (elem == null ) return; var color1=window.getComputedStyle(elem).backgroundColor; var color2=color1.replace('rgb','rgba').replace(')',', 0.4)') $('.schedule').css('background', 'repeating-linear-gradient(to right, '+color1+', '+color1+' 1px, '+color2+' 1px, '+color2+' 2px) ');