1
0
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:
Keivan Beigi
2013-05-14 18:17:24 -07:00
parent 7cf7b5e051
commit 27fc51da48
16 changed files with 118 additions and 67 deletions
+20
View File
@@ -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);
}
});
});
+10 -5
View File
@@ -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()
}
],