This commit is contained in:
Keivan Beigi 2013-06-20 18:43:58 -07:00
parent 0916c8b8d1
commit 24c77b4047
29 changed files with 610 additions and 517 deletions

View file

@ -0,0 +1,23 @@
'use strict';
define(
[
'backbone',
'AddSeries/Existing/UnmappedFolderModel'
], function (Backbone, UnmappedFolderModel) {
return Backbone.Collection.extend({
model: UnmappedFolderModel,
importItems: function (rootFolderModel) {
this.reset();
var rootFolder = rootFolderModel;
_.each(rootFolderModel.get('unmappedFolders'), function (folder) {
this.push(new UnmappedFolderModel({
rootFolder: rootFolder,
folder : folder
}));
}, this);
}
});
});