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