mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
removed backbone from VS solution,
renamed NzbDrone.Backbone to UI
This commit is contained in:
parent
c7776f74e1
commit
663160c06a
230 changed files with 57 additions and 386 deletions
38
UI/Settings/Quality/Profile/EditQualityProfileView.js
Normal file
38
UI/Settings/Quality/Profile/EditQualityProfileView.js
Normal file
|
@ -0,0 +1,38 @@
|
|||
'use strict';
|
||||
define(['app', 'Quality/QualityProfileModel'], function () {
|
||||
|
||||
NzbDrone.Settings.Quality.Profile.EditQualityProfileView = Backbone.Marionette.ItemView.extend({
|
||||
template: 'Settings/Quality/Profile/EditQualityProfileTemplate',
|
||||
tagName: 'div',
|
||||
className: "modal",
|
||||
|
||||
ui: {
|
||||
switch: '.switch'
|
||||
},
|
||||
|
||||
events: {
|
||||
'click .x-save': 'saveQualityProfile',
|
||||
//'click .x-remove': 'removeSeries'
|
||||
},
|
||||
|
||||
onRender: function () {
|
||||
NzbDrone.ModelBinder.bind(this.model, this.el);
|
||||
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