Hi,
I'm trying to intergrate a full calendar in my jira plugin, i'm referring to http://arshaw.com/fullcalendar/.
I have added this code in "atlassian-plugin.xml" :
<web-resource key="worklogCal-resources" name="worklogCal-resources"> <resource type="download" name="fullcalendar.css" location="/css/worklogCalendar/fullcalendar.css"/> <resource type="download" name="fullcalendar.print.css" location="/css/worklogCalendar/fullcalendar.print.css"/> <resource type="download" name="jquery.min.js" location="/js/worklogCalendar/jquery.min.js"/> <resource type="download" name="fullcalendar.js" location="/js/worklogCalendar/fullcalendar.js"/> <resource type="download" name="fullcalendar.min.js" location="/js/worklogCalendar/fullcalendar.min.js"/> <resource type="download" name="jquery-ui.custom.min.js" location="/js/worklogCalendar/jquery-ui.custom.min.js"/> <resource type="download" name="moment.js" location="/js/worklogCalendar/moment.js"/> </web-resource>
then I have added in the view "input.vm" :
$webResourceManager.requireResource("key-plugin:worklogCal-resources")
<script>
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
defaultDate: '2014-06-12',
editable: true,
.......
</script>
<body> <div id="calendar"></div> </body>
But nothing is displayed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have added a test resource "test.js" to prvious resources contains a script
alert('test');
The message 'test' was displayed, but no calendar.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just checking whether you need AJS.$ instead of $ only.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Je remplace "$" par "AJS.$" à quel niveau, j'ai fait ça
AJS.$('#calendar').fullCalendar({
mais aucun résultat obtenu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
$webResourceManager.requireResource("key-plugin:worklogCal-resources")
This is the first thing to check whether the resources are actually loaded.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.