Split Profile and Size into their own folders

pull/4/head
Mark McDowall 12 years ago
parent b4c97dd4c2
commit c4fa61023f

@ -0,0 +1,21 @@
'use strict';
define(['app', 'Settings/Quality/Profile/QualityProfileView'], function (app) {
NzbDrone.Settings.Quality.Profile.QualityProfileCollectionView = Backbone.Marionette.CompositeView.extend({
itemView: NzbDrone.Settings.Quality.Profile.QualityProfileView,
itemViewContainer: 'tbody',
template: 'Settings/Quality/Profile/QualityProfileCollectionTemplate',
initialize: function (options) {
},
ui:{
},
onCompositeCollectionRendered: function()
{
}
});
});

@ -6,8 +6,8 @@ define([
], function () {
NzbDrone.Settings.Quality.QualityProfileView = Backbone.Marionette.ItemView.extend({
template: 'Settings/Quality/QualityProfileTemplate',
NzbDrone.Settings.Quality.Profile.QualityProfileView = Backbone.Marionette.ItemView.extend({
template: 'Settings/Quality/Profile/QualityProfileTemplate',
tagName: 'tr',
ui: {

@ -3,8 +3,8 @@
'Quality/QualityProfileCollection',
'Quality/QualitySizeCollection',
'Settings/Quality/QualityView',
'Settings/Quality/QualityProfileCollectionView',
'Settings/Quality/QualitySizeCollectionView'
'Settings/Quality/Profile/QualityProfileCollectionView',
'Settings/Quality/Size/QualitySizeCollectionView'
],
function (app, qualityProfileCollection) {
NzbDrone.Settings.Quality.QualityLayout = Backbone.Marionette.Layout.extend({
@ -33,8 +33,8 @@
onRender: function () {
this.qualityStandard.show(new NzbDrone.Settings.Quality.QualityView({model: this.settings, qualityProfiles: qualityProfileCollection}));
this.qualityProfile.show(new NzbDrone.Settings.Quality.QualityProfileCollectionView({collection: qualityProfileCollection}));
this.qualitySize.show(new NzbDrone.Settings.Quality.QualitySizeCollectionView({collection: this.qualitySizeCollection}));
this.qualityProfile.show(new NzbDrone.Settings.Quality.Profile.QualityProfileCollectionView({collection: qualityProfileCollection}));
this.qualitySize.show(new NzbDrone.Settings.Quality.Size.QualitySizeCollectionView({collection: this.qualitySizeCollection}));
}
});
});

@ -1,21 +0,0 @@
'use strict';
define(['app', 'Settings/Quality/QualityProfileView'], function (app) {
NzbDrone.Settings.Quality.QualityProfileCollectionView = Backbone.Marionette.CompositeView.extend({
itemView: NzbDrone.Settings.Quality.QualityProfileView,
itemViewContainer: 'tbody',
template: 'Settings/Quality/QualityProfileCollectionTemplate',
initialize: function (options) {
},
ui:{
},
onCompositeCollectionRendered: function()
{
}
});
});

@ -1,22 +0,0 @@
'use strict';
define(['app', 'Settings/Quality/QualitySizeView'], function (app) {
NzbDrone.Settings.Quality.QualitySizeCollectionView = Backbone.Marionette.CompositeView.extend({
itemView: NzbDrone.Settings.Quality.QualitySizeView,
itemViewContainer: '#quality-sizes-container',
template: 'Settings/Quality/QualitySizeCollectionTemplate',
initialize: function () {
var test = 1;
},
ui:{
},
onCompositeCollectionRendered: function()
{
}
});
});

@ -0,0 +1,22 @@
'use strict';
define(['app', 'Settings/Quality/Size/QualitySizeView'], function (app) {
NzbDrone.Settings.Quality.Size.QualitySizeCollectionView = Backbone.Marionette.CompositeView.extend({
itemView: NzbDrone.Settings.Quality.Size.QualitySizeView,
itemViewContainer: '#quality-sizes-container',
template: 'Settings/Quality/Size/QualitySizeCollectionTemplate',
initialize: function () {
var test = 1;
},
ui:{
},
onCompositeCollectionRendered: function()
{
}
});
});

@ -6,8 +6,8 @@ define([
], function () {
NzbDrone.Settings.Quality.QualitySizeView = Backbone.Marionette.ItemView.extend({
template: 'Settings/Quality/QualitySizeTemplate',
NzbDrone.Settings.Quality.Size.QualitySizeView = Backbone.Marionette.ItemView.extend({
template: 'Settings/Quality/Size/QualitySizeTemplate',
className: 'quality-size-item',
ui: {

@ -45,6 +45,8 @@ define('app', function () {
window.NzbDrone.Settings = {};
window.NzbDrone.Settings.Naming = {};
window.NzbDrone.Settings.Quality = {};
window.NzbDrone.Settings.Quality.Size = {};
window.NzbDrone.Settings.Quality.Profile = {};
window.NzbDrone.Settings.Indexers = {};
window.NzbDrone.Settings.DownloadClient = {};
window.NzbDrone.Settings.Notifications = {};

Loading…
Cancel
Save