Bind SignalR to root SeriesCollection so typeahead gets the newest data.

This commit is contained in:
Taloth Saldono 2015-10-13 22:43:33 +02:00
parent e3c4070924
commit 97cdcb8b19
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ var AsFilteredCollection = require('../Mixins/AsFilteredCollection');
var AsSortedCollection = require('../Mixins/AsSortedCollection');
var AsPersistedStateCollection = require('../Mixins/AsPersistedStateCollection');
var moment = require('moment');
require('../Mixins/backbone.signalr.mixin');
var Collection = PageableCollection.extend({
url : window.NzbDrone.ApiRoot + '/series',
@ -111,4 +112,4 @@ Collection = AsPersistedStateCollection.call(Collection);
var data = ApiData.get('series');
module.exports = new Collection(data, { full : true });
module.exports = new Collection(data, { full : true }).bindSignalR();