Split Profile and Size into their own folders

This commit is contained in:
Mark McDowall 2013-03-08 17:55:47 -08:00
parent b4c97dd4c2
commit c4fa61023f
12 changed files with 53 additions and 51 deletions

View File

@ -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()
{
}
});
});

View File

@ -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: {

View File

@ -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}));
}
});
});

View File

@ -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()
{
}
});
});

View File

@ -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()
{
}
});
});

View File

@ -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()
{
}
});
});

View File

@ -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: {

View File

@ -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 = {};