app/views/events/index.html.erb in event_calendar_engine-0.1.6 vs app/views/events/index.html.erb in event_calendar_engine-0.1.7
- old
+ new
@@ -1,40 +1,22 @@
<h1>Events</h1>
<p><em>mouse over an event to preview; click on an event for full details</em></p>
-<div id="calendar_now" class="calendars"></div>
-<div id="calendar_one_month" class="calendars"></div>
-<div id="calendar_two_months" class="calendars"></div>
+<div id="calendar" class="calendars"></div>
<div style="clear:both"></div>
+
<div id="event_quick_description" style="display:none"></div>
<% content_for :javascript do %>
<script type="text/javascript">
$(document).ready(function()
{
- $(".nice_table").tablesorter( { widgets: ['zebra'], headers: { 3:{sorter: false}, 4:{sorter: false}, 5:{sorter: false}} });
-
- $('#calendar_now').fullCalendar({
- editable: false, events: '<%= events_path %>', height: 300, aspectRatio: 1.2,
- buttonText: { today:null, prev:null, next: null }, eventMouseover: updateEventDescription
+ $('#calendar').fullCalendar({
+ editable: false, events: '<%= events_path %>', height: 500, aspectRatio: 1,
+ eventMouseover: updateEventDescription
});
-
- $('#calendar_one_month').fullCalendar({
- editable: false, events: '<%= events_path %>', height: 300, aspectRatio: 1.2,
- buttonText: { today:null, prev:null, next: null }, eventMouseover: updateEventDescription
- });
-
- $('#calendar_two_months').fullCalendar({
- editable: false, events: '<%= events_path %>', height: 300, aspectRatio: 1.2,
- buttonText: { today:null }, eventMouseover: updateEventDescription,
- month: $('#calendar_one_month').fullCalendar('getDate').getMonth() + 1,
- viewDisplay: function(view) {
- $('#calendar_now').fullCalendar('gotoDate', $('#calendar_two_months').fullCalendar('getDate').getFullYear(), $('#calendar_two_months').fullCalendar('getDate').getMonth() - 2);
- $('#calendar_one_month').fullCalendar('gotoDate', $('#calendar_two_months').fullCalendar('getDate').getFullYear(), $('#calendar_two_months').fullCalendar('getDate').getMonth() - 1);
- }
- });
}
);
</script>
<% end %>