1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-16 16:04:08 +01:00
Radarr/NzbDrone.Web/_backboneApp/AddSeries/Existing/UnmappedFolderModel.js

26 lines
609 B
JavaScript
Raw Normal View History

2013-01-31 23:40:51 +01:00
'use strict';
/// <reference path="../../app.js" />
NzbDrone.AddSeries.Existing.UnmappedFolderModel = Backbone.Model.extend({
});
NzbDrone.AddSeries.Existing.UnmappedFolderCollection = Backbone.Collection.extend({
model: NzbDrone.AddSeries.Existing.UnmappedFolderModel,
importArray: function (unmappedFolderArray) {
if (!unmappedFolderArray) {
throw "folder array is required";
}
_.each(unmappedFolderArray, function (folder) {
this.push(new NzbDrone.AddSeries.Existing.UnmappedFolderModel({ folder: folder }));
}, this);
}
});