mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 18:42:42 +01:00
Now creating Backbone.Model instance for EpisodeFile.
This commit is contained in:
parent
eddfe67eb1
commit
6a07bb1b9b
@ -3,11 +3,12 @@
|
||||
define(
|
||||
[
|
||||
'reqres',
|
||||
'backbone',
|
||||
'Cells/NzbDroneCell',
|
||||
'History/Queue/QueueCollection',
|
||||
'moment',
|
||||
'Shared/FormatHelpers'
|
||||
], function (reqres, NzbDroneCell, QueueCollection, Moment, FormatHelpers) {
|
||||
], function (reqres, Backbone, NzbDroneCell, QueueCollection, Moment, FormatHelpers) {
|
||||
return NzbDroneCell.extend({
|
||||
|
||||
className: 'episode-status-cell',
|
||||
@ -39,7 +40,7 @@ define(
|
||||
}
|
||||
|
||||
else {
|
||||
episodeFile = this.model.get('episodeFile');
|
||||
episodeFile = new Backbone.Model(this.model.get('episodeFile'));
|
||||
}
|
||||
|
||||
this.listenTo(episodeFile, 'change', this._refresh);
|
||||
|
Loading…
Reference in New Issue
Block a user