mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
22 lines
674 B
JavaScript
22 lines
674 B
JavaScript
'use strict';
|
|
define(['app'], function () {
|
|
|
|
|
|
NzbDrone.AddSeries.Existing.UnmappedFolderModel = Backbone.Model.extend({
|
|
});
|
|
|
|
NzbDrone.AddSeries.Existing.UnmappedFolderCollection = Backbone.Collection.extend({
|
|
model: NzbDrone.AddSeries.Existing.UnmappedFolderModel,
|
|
|
|
importItems: function (rootFolderModel) {
|
|
|
|
this.reset();
|
|
var rootFolder = rootFolderModel;//.get('path');
|
|
|
|
_.each(rootFolderModel.get('unmappedFolders'), function (folder) {
|
|
this.push(new NzbDrone.AddSeries.Existing.UnmappedFolderModel({ rootFolder: rootFolder, folder: folder}));
|
|
}, this);
|
|
}
|
|
});
|
|
});
|