lidarr/src/UI/Series/Index/Posters/SeriesPostersItemView.js
Mark McDowall 6c9ea60382 Removed delete button from series lists, added refresh button
New: Refresh button on series lists (replaces delete)
New: Show series title on poster on hover
2014-06-18 23:46:04 -07:00

27 lines
816 B
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use strict';
define(
[
'vent',
'marionette',
'Series/Index/SeriesIndexItemView'
], function (vent, Marionette, SeriesIndexItemView) {
return 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();
}
});
});