mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-21 22:04:31 -04:00
Beginning of Add New Profile button
This commit is contained in:
@@ -72,5 +72,13 @@ QualityProfileCollectionView = Backbone.Marionette.CompositeView.extend({
|
||||
this.collection = new QualityProfileCollection();
|
||||
this.collection.fetch();
|
||||
this.collection.bind('reset', this.render);
|
||||
},
|
||||
events: {
|
||||
'click #add-profile': 'addProfile'
|
||||
},
|
||||
addProfile: function (e) {
|
||||
//Add new profile to collection
|
||||
this.collection.add(new QualityProfile());
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user