Sha256: b6f2243afccad6f553ea834f493fc902d350796a5e9ed47773c001b51204a83e
Contents?: true
Size: 1017 Bytes
Versions: 4
Compression:
Stored size: 1017 Bytes
Contents
- add_title @calendar.name = date_book_scripts .calendar = link_to :calendar_events.l(calendar: @calendar.name), date_book.calendar_events_path(@calendar) - if can? :create, @calendar.events.new %p.float-right.margin-left= icon_link_to 'plus', :add_event.l, date_book.new_calendar_event_path(@calendar), class: 'btn btn-success' = @calendar.description.html_safe %hr #calendar-display - add_footer_javascript do :javascript $(function() { $('#calendar-display').fullCalendar({ events: { url: '#{date_book.api_path format: :json}', type: 'POST', data: { query: calendarBySlugQuery('#{@calendar.slug}') }, success: function(data, status, xhr) { data = data.data.calendar.event_occurrences; new_data = $.map(data, formatEventOccurrence); console.log(new_data); return new_data; } }, eventRender: calendarEventRender, header: calendarEventHeader, }); });
Version data entries
4 entries across 4 versions & 1 rubygems