mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 10:47:08 -07:00
More backbone
This commit is contained in:
parent
ccccb9a4cd
commit
0333da1062
9 changed files with 77 additions and 20 deletions
|
@ -1,7 +1,17 @@
|
|||
QualityProfileView = Backbone.Marionette.ItemView.extend({
|
||||
tagName: "div",
|
||||
className: "quality-profile",
|
||||
template: "#QualityProfileTemplate"
|
||||
template: "#QualityProfileTemplate",
|
||||
events: {
|
||||
'click .quality-selectee': 'toggleAllowed'
|
||||
},
|
||||
toggleAllowed: function (e) {
|
||||
//Add to cutoff
|
||||
//Update model
|
||||
|
||||
var checked = $(e.target).attr('checked') != undefined;
|
||||
this.model.set({ });
|
||||
}
|
||||
});
|
||||
|
||||
QualityProfileCollectionView = Backbone.Marionette.CompositeView.extend({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue