mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-30 19:45:57 +00:00
7093f352fe
backbone app is now fully served from nancy including css,js,html
27 lines
796 B
JavaScript
27 lines
796 B
JavaScript
'use strict';
|
|
|
|
define(['app','Quality/QualityProfileCollection'], function (app, qualityProfiles) {
|
|
|
|
|
|
NzbDrone.AddSeries.Existing.UnmappedFolderModel = Backbone.Model.extend({
|
|
|
|
defaults :{
|
|
quality: qualityProfiles
|
|
}
|
|
|
|
});
|
|
|
|
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);
|
|
}
|
|
});
|
|
});
|