2013-08-31 20:31:58 +00:00
|
|
|
|
'use strict';
|
2013-06-21 01:43:58 +00:00
|
|
|
|
define(
|
|
|
|
|
[
|
2013-06-21 05:19:41 +00:00
|
|
|
|
'backbone',
|
2013-06-21 01:43:58 +00:00
|
|
|
|
'AddSeries/RootFolders/Model',
|
2013-07-24 06:26:10 +00:00
|
|
|
|
'Mixins/backbone.signalr.mixin'
|
2013-06-21 05:19:41 +00:00
|
|
|
|
], function (Backbone, RootFolderModel) {
|
2013-06-21 01:43:58 +00:00
|
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
|
var RootFolderCollection = Backbone.Collection.extend({
|
2013-09-14 07:10:19 +00:00
|
|
|
|
url : window.NzbDrone.ApiRoot + '/rootfolder',
|
2013-06-21 05:19:41 +00:00
|
|
|
|
model: RootFolderModel
|
2013-06-21 01:43:58 +00:00
|
|
|
|
});
|
|
|
|
|
|
2013-09-07 02:52:17 +00:00
|
|
|
|
//var collection = new RootFolderCollection().bindSignalR();
|
2013-06-21 05:19:41 +00:00
|
|
|
|
|
2013-09-08 01:50:43 +00:00
|
|
|
|
return new RootFolderCollection();
|
2013-06-21 01:43:58 +00:00
|
|
|
|
});
|