mirror of
https://github.com/Readarr/Readarr
synced 2025-12-27 18:54:54 +01:00
35 lines
927 B
JavaScript
35 lines
927 B
JavaScript
'use strict';
|
|
|
|
define(
|
|
[
|
|
'jquery',
|
|
'vent',
|
|
'marionette',
|
|
'Cells/NzbDroneCell',
|
|
'History/Details/HistoryDetailsView',
|
|
'bootstrap'
|
|
], function ($, vent, Marionette, NzbDroneCell, HistoryDetailsView) {
|
|
return NzbDroneCell.extend({
|
|
|
|
className: 'episode-activity-details-cell',
|
|
|
|
|
|
render: function () {
|
|
this.$el.empty();
|
|
this.$el.html('<i class="icon-info-sign"></i>');
|
|
|
|
var html = new HistoryDetailsView({ model: this.model }).render().$el;
|
|
|
|
this.$el.popover({
|
|
content : html,
|
|
html : true,
|
|
trigger : 'hover',
|
|
title : 'Details',
|
|
placement: 'left',
|
|
container: this.$el
|
|
});
|
|
|
|
return this;
|
|
}
|
|
});
|
|
});
|