From 97cdcb8b1947834e0688f040c227797ea5c7bb26 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Tue, 13 Oct 2015 22:43:33 +0200 Subject: [PATCH] Bind SignalR to root SeriesCollection so typeahead gets the newest data. --- src/UI/Series/SeriesCollection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/UI/Series/SeriesCollection.js b/src/UI/Series/SeriesCollection.js index fa7e4422e..65f4eec73 100644 --- a/src/UI/Series/SeriesCollection.js +++ b/src/UI/Series/SeriesCollection.js @@ -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 }); \ No newline at end of file +module.exports = new Collection(data, { full : true }).bindSignalR();