Item8616: ADDTOHEAD and JQREQUIRE interactions.
Priority: Urgent
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Extension
Component: ZonePlugin
Branches:
Had a problem where this did not work, nothing was added to the page (not even calendarapp.js), but now it's working again... closing no action.
%JQREQUIRE{"ui"}%
%JQREQUIRE{"fullcalendar"}%
%ADDTOHEAD{"CalendarApp" text="<script type='text/javascript' src='%ATTACHURLPATH%/calendarapp.js'></script>"}%
I eventually landed at this combination:
%JQREQUIRE{"ui"}%
%JQREQUIRE{"fullcalendar"}%
%ADDTOHEAD{"CalendarApp" requires="JQUERYPLUGIN::UI" text="<script type='text/javascript' src='%ATTACHURLPATH%/calendarapp.js'></script>"}%
Also of note, a simple
%JQREQUIRE{"fullcalendar"}%
by itself did not add the js for ui to the page, so I had to require both ui and full-calendar separately
Sorry for the vague bug report, if we are unable to reproduce, I will find time later to do this again and document exactly what I tried
--
PaulHarvey - 25 Feb 2010