mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Removed some UI info from views. Added UI Config
This commit is contained in:
parent
7c1e81a70e
commit
5d7f6fb03b
16 changed files with 211 additions and 73 deletions
|
@ -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);
|
||||
// }
|
||||
}
|
||||
});
|
||||
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue