mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-14 15:03:42 +01:00
95a6dfc34e
summary tab is working.
61 lines
1.3 KiB
JavaScript
61 lines
1.3 KiB
JavaScript
"use strict";
|
|
define(['app', 'Episode/Summary/View'], function () {
|
|
|
|
NzbDrone.Episode.Layout = Backbone.Marionette.Layout.extend({
|
|
template: 'Episode/LayoutTemplate',
|
|
|
|
|
|
regions: {
|
|
summary : '#episode-summary',
|
|
activity: '#episode-activity',
|
|
search : '#episode-search'
|
|
},
|
|
|
|
ui: {
|
|
summary : '.x-episode-summary',
|
|
activity: '.x-episode-activity',
|
|
search : '.x-episode-search'
|
|
},
|
|
|
|
events: {
|
|
|
|
'click .x-episode-summary' : 'showSummary',
|
|
'click .x-episode-activity': 'showActivity',
|
|
'click .x-episode-search' : 'showSearch'
|
|
},
|
|
|
|
|
|
onShow: function () {
|
|
this.showSummary();
|
|
},
|
|
|
|
|
|
showSummary: function (e) {
|
|
if (e) {
|
|
e.preventDefault();
|
|
}
|
|
|
|
this.ui.summary.tab('show');
|
|
this.summary.show(new NzbDrone.Episode.Summary.View({model: this.model}));
|
|
|
|
},
|
|
|
|
showActivity: function (e) {
|
|
if (e) {
|
|
e.preventDefault();
|
|
}
|
|
|
|
this.ui.activity.tab('show');
|
|
},
|
|
|
|
showSearch: function (e) {
|
|
if (e) {
|
|
e.preventDefault();
|
|
}
|
|
|
|
this.ui.search.tab('show');
|
|
}
|
|
|
|
});
|
|
|
|
}); |