You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
451 B
18 lines
451 B
'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;
|
|
});
|