This question about Issue in browser: Asked
JSCalendarContrib CSS doesn't load
Hi,
JSCalendarContrib on my Foswiki (1.1.4) install doesn't load any CSS. Looking at
/lib/Foswiki/Contrib/JSCalendarContrib.pm, I can see around line 208 is where the
style element is created in the output HTML.
However, in my browsers I get this:
<style type='text/css' media='all'>.calendar{z-index:2000}</style><!--JSCalendarContrib/css-->
It's as if the @import is ignored.
So I researched @import a little and ended up removing the
.calendar rule on line 211 of
/lib/Foswiki/Contrib/JSCalendarContrib.pm (see
https://github.com/foswiki/distro/blob/master/JSCalendarContrib/lib/Foswiki/Contrib/JSCalendarContrib.pm#L211). Now my browsers get this:
<link rel="stylesheet" href="/pub/System/JSCalendarContrib/calendar-blue.css" type='text/css' media='all'/><!--JSCalendarContrib/css-->
and the
JSCalendarContrib CSS loads correctly. Odd that the markup is totally different, but maybe that's how browsers parse this...? Unless I am missing something, or have some unusual mod in my Foswiki instance.
Is anyone else experiencing this issue?
Thanks,
Nick
--
NickLegg - 03 Sep 2014