mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-28 23:27:08 -04:00
00717a638a
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
30 lines
794 B
JavaScript
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());
|
|
}
|
|
});
|
|
});
|