Lidarr/UI/AddSeries/RootFolders/Collection.js

18 lines
446 B
JavaScript
Raw Normal View History

'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',
'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 : window.ApiRoot + '/rootfolder',
2013-06-21 05:19:41 +00:00
model: RootFolderModel
2013-06-21 01:43:58 +00:00
});
var collection = new RootFolderCollection().BindSignalR();
2013-06-21 05:19:41 +00:00
return collection;
2013-06-21 01:43:58 +00:00
});