You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
677 B
29 lines
677 B
var vent = require('vent');
|
|
var NzbDroneCell = require('./NzbDroneCell');
|
|
|
|
module.exports = NzbDroneCell.extend({
|
|
className : 'album-title-cell',
|
|
|
|
events : {
|
|
'click' : '_showDetails'
|
|
},
|
|
|
|
render : function() {
|
|
var title = this.cellValue.get('title');
|
|
|
|
if (!title || title === '') {
|
|
title = 'TBA';
|
|
}
|
|
|
|
this.$el.html(title);
|
|
return this;
|
|
},
|
|
|
|
_showDetails : function() {
|
|
var hideArtistLink = this.column.get('hideArtistLink');
|
|
vent.trigger(vent.Commands.ShowAlbumDetails, {
|
|
album : this.cellValue,
|
|
hideArtistLink : hideArtistLink
|
|
});
|
|
}
|
|
}); |