mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-19 21:46:50 -04:00
Cleaned up modals in the UI.
added empty modal for episode info
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
"use strict";
|
||||
|
||||
define(['app', 'Episode/Layout'], function () {
|
||||
NzbDrone.Series.Details.EpisodeDetailCell = Backgrid.Cell.extend({
|
||||
|
||||
events: {
|
||||
'click': 'showDetails'
|
||||
},
|
||||
render: function () {
|
||||
this.$el.empty();
|
||||
this.$el.html('<i class="icon-ellipsis-vertical x-detail-icon"/>');
|
||||
return this;
|
||||
},
|
||||
|
||||
showDetails: function () {
|
||||
var view = new NzbDrone.Episode.Layout({ model: this.model });
|
||||
NzbDrone.modalRegion.show(view);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -1,5 +1,5 @@
|
||||
'use strict';
|
||||
define(['app'], function () {
|
||||
define(['app', 'Series/Details/EpisodeDetailCell'], function () {
|
||||
NzbDrone.Series.Details.SeasonLayout = Backbone.Marionette.Layout.extend({
|
||||
template: 'Series/Details/SeasonLayoutTemplate',
|
||||
|
||||
@@ -8,6 +8,11 @@ define(['app'], function () {
|
||||
},
|
||||
|
||||
columns: [
|
||||
{
|
||||
name : 'details',
|
||||
editable: false,
|
||||
cell : NzbDrone.Series.Details.EpisodeDetailCell
|
||||
},
|
||||
{
|
||||
name : 'episodeNumber',
|
||||
label : '#',
|
||||
@@ -22,10 +27,10 @@ define(['app'], function () {
|
||||
cell : 'string'
|
||||
},
|
||||
{
|
||||
name : 'airDate',
|
||||
label : 'Air Date',
|
||||
editable : false,
|
||||
cell : 'date'
|
||||
name : 'airDate',
|
||||
label : 'Air Date',
|
||||
editable: false,
|
||||
cell : 'date'
|
||||
//formatter: new Backgrid.AirDateFormatter()
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user