1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-03-05 13:20:20 -05:00
Files
Sonarr/src/UI/Calendar/CalendarLayout.js
Keivan Beigi 428a1439e5 rjs -> webpack
2015-02-02 17:43:14 -08:00

28 lines
905 B
JavaScript

var AppLayout = require('../AppLayout');
var Marionette = require('marionette');
var UpcomingCollectionView = require('./UpcomingCollectionView');
var CalendarView = require('./CalendarView');
var CalendarFeedView = require('./CalendarFeedView');
module.exports = Marionette.Layout.extend({
template : 'Calendar/CalendarLayoutTemplate',
regions : {
upcoming : '#x-upcoming',
calendar : '#x-calendar'
},
events : {"click .x-ical" : '_showiCal'},
onShow : function(){
this._showUpcoming();
this._showCalendar();
},
_showUpcoming : function(){
this.upcoming.show(new UpcomingCollectionView());
},
_showCalendar : function(){
this.calendar.show(new CalendarView());
},
_showiCal : function(){
var view = new CalendarFeedView();
AppLayout.modalRegion.show(view);
}
});