Movie history now fully implemented.

Leonardo Galli 8 years ago
parent 0d65984991
commit 2eedfca78a

@ -50,7 +50,7 @@ var Collection = PageableCollection.extend({
},
sortMappings : {
'series' : { sortKey : 'series.sortTitle' }
'movie' : { sortKey : 'movie.sortTitle' }
},
initialize : function(options) {

@ -2,7 +2,7 @@ var Marionette = require('marionette');
var Backgrid = require('backgrid');
var HistoryCollection = require('./HistoryCollection');
var EventTypeCell = require('../../Cells/EventTypeCell');
var SeriesTitleCell = require('../../Cells/SeriesTitleCell');
var MovieTitleCell = require('../../Cells/MovieTitleCell');
var EpisodeNumberCell = require('../../Cells/EpisodeNumberCell');
var EpisodeTitleCell = require('../../Cells/EpisodeTitleCell');
var HistoryQualityCell = require('./HistoryQualityCell');
@ -29,11 +29,11 @@ module.exports = Marionette.Layout.extend({
cellValue : 'this'
},
{
name : 'series',
label : 'Series',
cell : SeriesTitleCell
name : 'movies',
label : 'Movie Title',
cell : MovieTitleCell
},
{
/*{
name : 'episode',
label : 'Episode',
cell : EpisodeNumberCell,
@ -44,7 +44,7 @@ module.exports = Marionette.Layout.extend({
label : 'Episode Title',
cell : EpisodeTitleCell,
sortable : false
},
},*/
{
name : 'this',
label : 'Quality',

@ -0,0 +1,11 @@
var TemplatedCell = require('./TemplatedCell');
module.exports = TemplatedCell.extend({
className : 'series-title-cell',
template : 'Cells/SeriesTitleTemplate',
render : function() {
this.$el.html(this.model.get("movie").get("title")); //Hack, but somehow handlebar helper does not work.
return this;
}
});
Loading…
Cancel
Save