mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Quality Profile add card
This commit is contained in:
@@ -13,7 +13,16 @@ define(['app',
|
||||
template : 'Settings/Quality/Profile/QualityProfileCollectionTemplate',
|
||||
|
||||
events: {
|
||||
'click .x-add': '_addProfile'
|
||||
'click .x-add-card': '_addProfile'
|
||||
},
|
||||
|
||||
onAfterItemAdded: function () {
|
||||
this.$itemViewContainer.find('.x-add-card').remove();
|
||||
|
||||
this.templateFunction = Marionette.TemplateCache.get('Settings/Quality/Profile/AddCardTemplate');
|
||||
var html = this.templateFunction();
|
||||
|
||||
this.$itemViewContainer.append(html);
|
||||
},
|
||||
|
||||
_addProfile: function () {
|
||||
|
Reference in New Issue
Block a user