Files
Prowlarr/src/UI/Calendar/CalendarLayout.js
T
Mark McDowall 00717a638a Updated full calendar to 1.6.4
Calendar/Upcoming now update on grab/download events
Better use of backbone collection on calendar
New: Calendar will auto refresh when episodes are grabbed and downloaded
2013-11-30 02:54:11 -08:00

30 lines
794 B
JavaScript

'use strict';
define(
[
'marionette',
'Calendar/UpcomingCollectionView',
'Calendar/CalendarView'
], function (Marionette, UpcomingCollectionView, CalendarView) {
return Marionette.Layout.extend({
template: 'Calendar/CalendarLayoutTemplate',
regions: {
upcoming: '#x-upcoming',
calendar: '#x-calendar'
},
onShow: function () {
this._showUpcoming();
this._showCalendar();
},
_showUpcoming: function () {
this.upcoming.show(new UpcomingCollectionView());
},
_showCalendar: function () {
this.calendar.show(new CalendarView());
}
});
});