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.
Lidarr/src/UI/Series/Index/Posters/SeriesPostersItemView.js

19 lines
594 B

var SeriesIndexItemView = require('../SeriesIndexItemView');
module.exports = SeriesIndexItemView.extend({
tagName : 'li',
template : 'Series/Index/Posters/SeriesPostersItemViewTemplate',
initialize : function() {
this.events['mouseenter .x-series-poster'] = 'posterHoverAction';
this.events['mouseleave .x-series-poster'] = 'posterHoverAction';
this.ui.controls = '.x-series-controls';
this.ui.title = '.x-title';
},
posterHoverAction : function() {
this.ui.controls.slideToggle();
this.ui.title.slideToggle();
}
});