Removed some UI info from views. Added UI Config

This commit is contained in:
Mark McDowall 2013-04-07 16:15:04 -07:00
parent 7c1e81a70e
commit 5d7f6fb03b
16 changed files with 211 additions and 73 deletions

View file

@ -11,8 +11,7 @@ define(['app', 'Quality/QualityProfileModel'], function () {
},
events: {
'click .x-save': 'saveQualityProfile',
//'click .x-remove': 'removeSeries'
'click .x-save': 'saveQualityProfile'
},
onRender: function () {
@ -20,19 +19,13 @@ define(['app', 'Quality/QualityProfileModel'], function () {
this.ui.switch.bootstrapSwitch();
},
saveQualityProfile: function () {
//Todo: Make sure model is updated with Allowed, Cutoff, Name
this.model.save();
this.trigger('saved');
this.$el.parent().modal('hide');
},
// removeSeries: function () {
// var view = new NzbDrone.Series.Delete.DeleteSeriesView({ model: this.model });
// NzbDrone.modalRegion.show(view);
// }
}
});
});