lidarr/UI/History/Queue/QueueCollection.js
Mark McDowall daeb2fc652 Episode grid will show downloading on grab
New: Update episode status in UI on grab and download
2013-10-01 22:20:30 -07:00

17 lines
451 B
JavaScript

'use strict';
define(
[
'backbone',
'History/Queue/QueueModel',
'Mixins/backbone.signalr.mixin'
], function (Backbone, QueueModel) {
var QueueCollection = Backbone.Collection.extend({
url : window.NzbDrone.ApiRoot + '/queue',
model: QueueModel
});
var collection = new QueueCollection().bindSignalR();
collection.fetch();
return collection;
});