History now correctly shows movie title. Fixes #92

pull/102/head
Leonardo Galli 8 years ago
parent f61c4feb00
commit e4f7aa52df

@ -2,7 +2,7 @@ var Marionette = require('marionette');
var Backgrid = require('backgrid'); var Backgrid = require('backgrid');
var HistoryCollection = require('./HistoryCollection'); var HistoryCollection = require('./HistoryCollection');
var EventTypeCell = require('../../Cells/EventTypeCell'); var EventTypeCell = require('../../Cells/EventTypeCell');
var MovieTitleCell = require('../../Cells/MovieTitleCell'); var MovieTitleCell = require('../../Cells/MovieTitleHistoryCell');
var EpisodeNumberCell = require('../../Cells/EpisodeNumberCell'); var EpisodeNumberCell = require('../../Cells/EpisodeNumberCell');
var EpisodeTitleCell = require('../../Cells/EpisodeTitleCell'); var EpisodeTitleCell = require('../../Cells/EpisodeTitleCell');
var HistoryQualityCell = require('./HistoryQualityCell'); var HistoryQualityCell = require('./HistoryQualityCell');
@ -31,7 +31,7 @@ module.exports = Marionette.Layout.extend({
{ {
name : 'movies', name : 'movies',
label : 'Movie Title', label : 'Movie Title',
cell : MovieTitleCell cell : MovieTitleCell,
}, },
/*{ /*{
name : 'episode', name : 'episode',

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

@ -1,6 +0,0 @@
var TemplatedCell = require('./TemplatedCell');
module.exports = TemplatedCell.extend({
className : 'series-title-cell',
template : 'Cells/SeriesTitleTemplate',
});

@ -0,0 +1,14 @@
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.
debugger;
return this;
}
});

@ -6,7 +6,7 @@ var ListCollectionView = require('./Overview/SeriesOverviewCollectionView');
var EmptyView = require('./EmptyView'); var EmptyView = require('./EmptyView');
var MoviesCollection = require('../MoviesCollection'); var MoviesCollection = require('../MoviesCollection');
var InCinemasCell = require('../../Cells/InCinemasCell'); var InCinemasCell = require('../../Cells/InCinemasCell');
var MovieTitleCell = require('../../Cells/MovieTitleCell2'); var MovieTitleCell = require('../../Cells/MovieTitleCell');
var TemplatedCell = require('../../Cells/TemplatedCell'); var TemplatedCell = require('../../Cells/TemplatedCell');
var ProfileCell = require('../../Cells/ProfileCell'); var ProfileCell = require('../../Cells/ProfileCell');
var MovieLinksCell = require('../../Cells/MovieLinksCell'); var MovieLinksCell = require('../../Cells/MovieLinksCell');

Loading…
Cancel
Save