parent
29d9e3dadf
commit
860f55996c
@ -1,12 +1,13 @@
|
||||
var Backbone = require('backbone');
|
||||
var ProfileModel = require('./ProfileModel');
|
||||
|
||||
module.exports = (function(){
|
||||
var ProfileCollection = Backbone.Collection.extend({
|
||||
model : ProfileModel,
|
||||
url : window.NzbDrone.ApiRoot + '/profile'
|
||||
});
|
||||
var profiles = new ProfileCollection();
|
||||
profiles.fetch();
|
||||
return profiles;
|
||||
}).call(this);
|
||||
var ProfileCollection = Backbone.Collection.extend({
|
||||
model : ProfileModel,
|
||||
url : window.NzbDrone.ApiRoot + '/profile'
|
||||
});
|
||||
|
||||
var profiles = new ProfileCollection();
|
||||
|
||||
profiles.fetch();
|
||||
|
||||
module.exports = profiles;
|
||||
|
Loading…
Reference in new issue