Reputation: 44
I have one select list box in there 3 option value and last option value is Calendar
, while i will click on calendar events doesn't load first time...
My code for Full calendar + events.
<script type='text/javascript' src='js/fullcalendar.min.js'></script>
<script>
$(document).ready(function() {
$('#calendar').fullCalendar({
events: "json-events.php",
loading: function(bool) {
if (bool) {
$('#loading').show();
}
else {
$('#loading').hide();
}
},
});
});
</script>
Upvotes: 1
Views: 2026
Reputation: 1593
i had a similar problem: so i rerendered the calendar:
if (bool) {
$('#loading').show();
setTimeout(function(){
$('#calendar').fullCalendar('render');
},1);
}
hope this works for your setting too.
Upvotes: 2