1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2025-02-13 09:56:01 +00:00
Sonarr/NzbDrone.Web/_backboneApp/AddSeries/Existing/UnmappedFolderModel.js
2013-02-15 16:52:41 -08:00

25 lines
609 B
JavaScript

'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);
}
});