mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -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
|
@ -40,7 +40,12 @@
|
|||
|
||||
<div class="controls">
|
||||
<div class="switch" data-on-label="Yes" data-off-label="No">
|
||||
<input type="checkbox" name="allowed"/>
|
||||
{{#if allowed}}
|
||||
<input type="checkbox" checked="checked" />
|
||||
{{else}}
|
||||
<input type="checkbox" />
|
||||
{{/if}}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -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