diff --git a/NzbDrone.Web/NzbDrone.Web.csproj b/NzbDrone.Web/NzbDrone.Web.csproj
index 2a1c25128..6c965456c 100644
--- a/NzbDrone.Web/NzbDrone.Web.csproj
+++ b/NzbDrone.Web/NzbDrone.Web.csproj
@@ -195,6 +195,10 @@
+
+
+
+
diff --git a/NzbDrone.Web/_backboneApp/AddSeries/AddNewSeries/AddNewSeriesView.js b/NzbDrone.Web/_backboneApp/AddSeries/AddNewSeries/AddNewSeriesView.js
index df668b338..9344a699f 100644
--- a/NzbDrone.Web/_backboneApp/AddSeries/AddNewSeries/AddNewSeriesView.js
+++ b/NzbDrone.Web/_backboneApp/AddSeries/AddNewSeries/AddNewSeriesView.js
@@ -15,12 +15,17 @@ NzbDrone.AddSeries.AddNewSeriesView = Backbone.Marionette.Layout.extend({
collection: new NzbDrone.AddSeries.SearchResultCollection(),
- initialize: function (rootFolders) {
- if (rootFolders === undefined) {
+ initialize: function (options) {
+ if (options.rootFolders === undefined) {
throw "rootFolder arg is required.";
}
- this.rootFoldersCollection = rootFolders;
+ if (options.qualityProfiles === undefined) {
+ throw "qualityProfiles arg is required.";
+ }
+
+ this.rootFoldersCollection = options.rootFolders;
+ this.qualityProfilesCollection = options.qualityProfiles;
},
onRender: function () {
@@ -61,7 +66,8 @@ NzbDrone.AddSeries.AddNewSeriesView = Backbone.Marionette.Layout.extend({
resultUpdated: function (options, context) {
_.each(options.models, function (model) {
- model.set('rootFolders', context.rootFoldersCollection.rootFolders.models);
+ model.set('rootFolders', context.rootFoldersCollection.models);
+ model.set('qualityProfiles', context.qualityProfilesCollection.models);
});
context.searchResult.show(context.resultView);
diff --git a/NzbDrone.Web/_backboneApp/AddSeries/AddNewSeries/SearchResultTemplate.html b/NzbDrone.Web/_backboneApp/AddSeries/AddNewSeries/SearchResultTemplate.html
index a50cfd853..05f0a3f7c 100644
--- a/NzbDrone.Web/_backboneApp/AddSeries/AddNewSeries/SearchResultTemplate.html
+++ b/NzbDrone.Web/_backboneApp/AddSeries/AddNewSeries/SearchResultTemplate.html
@@ -4,16 +4,15 @@
-