mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-28 04:51:45 +02:00
Now creating Backbone.Model instance for EpisodeFile.
This commit is contained in:
@@ -3,11 +3,12 @@
|
|||||||
define(
|
define(
|
||||||
[
|
[
|
||||||
'reqres',
|
'reqres',
|
||||||
|
'backbone',
|
||||||
'Cells/NzbDroneCell',
|
'Cells/NzbDroneCell',
|
||||||
'History/Queue/QueueCollection',
|
'History/Queue/QueueCollection',
|
||||||
'moment',
|
'moment',
|
||||||
'Shared/FormatHelpers'
|
'Shared/FormatHelpers'
|
||||||
], function (reqres, NzbDroneCell, QueueCollection, Moment, FormatHelpers) {
|
], function (reqres, Backbone, NzbDroneCell, QueueCollection, Moment, FormatHelpers) {
|
||||||
return NzbDroneCell.extend({
|
return NzbDroneCell.extend({
|
||||||
|
|
||||||
className: 'episode-status-cell',
|
className: 'episode-status-cell',
|
||||||
@@ -39,7 +40,7 @@ define(
|
|||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
episodeFile = this.model.get('episodeFile');
|
episodeFile = new Backbone.Model(this.model.get('episodeFile'));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.listenTo(episodeFile, 'change', this._refresh);
|
this.listenTo(episodeFile, 'change', this._refresh);
|
||||||
|
Reference in New Issue
Block a user