Skip to content

Commit

Permalink
Fixing routes name and Adding default calendar config
Browse files Browse the repository at this point in the history
  • Loading branch information
ancarebeca committed Aug 16, 2015
1 parent ff0f52e commit 6d058d2
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 28 deletions.
8 changes: 0 additions & 8 deletions FullCalendarEvents.php

This file was deleted.

4 changes: 1 addition & 3 deletions Resources/config/routing.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
full_calendar_load:
ancarebeca_full_calendar_load:
path: /full-calendar/load
defaults:
_controller: FullCalendarBundle:Calendar:load
options:
expose: true
22 changes: 22 additions & 0 deletions Resources/public/js/fullcalendar/fullcalendar.default-settings.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
$(function () {
$('#calendar-holder').fullCalendar({
header: {
left: 'prev, next',
center: 'title',
right: 'month, basicWeek, basicDay,'
},
lazyFetching: true,
timeFormat: {
agenda: 'h:mmt',
'': 'h:mmt'
},
eventSources: [
{
url: '/full-calendar/load',
type: 'POST',
data: {},
error: function () {}
}
]
});
});
17 changes: 0 additions & 17 deletions Tests/Controller/DefaultControllerTest.php

This file was deleted.

0 comments on commit 6d058d2

Please sign in to comment.