1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-27 18:28:19 +00:00
Sonarr/UI/AddSeries/RootFolders/Collection.js

18 lines
455 B
JavaScript
Raw Normal View History

2013-06-21 01:43:58 +00:00
"use strict";
define(
[
2013-06-21 05:19:41 +00:00
'backbone',
2013-06-21 01:43:58 +00:00
'AddSeries/RootFolders/Model',
'mixins/backbone.signalr.mixin'
2013-06-21 05:19:41 +00:00
], function (Backbone, RootFolderModel) {
2013-06-21 01:43:58 +00:00
var rootFolderCollection = Backbone.Collection.extend({
url : NzbDrone.Constants.ApiRoot + '/rootfolder',
2013-06-21 05:19:41 +00:00
model: RootFolderModel
2013-06-21 01:43:58 +00:00
});
2013-06-21 05:19:41 +00:00
var collection = new rootFolderCollection().BindSignalR();
return collection;
2013-06-21 01:43:58 +00:00
});