mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-04 10:02:40 +01:00
Fixed alignment issues and better rendering for add cards
This commit is contained in:
parent
6522b38584
commit
224ef64e6e
@ -14,8 +14,8 @@ define(['app',
|
||||
'click .x-add-card': '_openSchemaModal'
|
||||
},
|
||||
|
||||
onAfterItemAdded: function () {
|
||||
this.$itemViewContainer.find('.x-add-card').parent('li').remove();
|
||||
onRender: function () {
|
||||
this.listenTo(this.collection, 'add', this.render);
|
||||
|
||||
this.templateFunction = Marionette.TemplateCache.get('Settings/Indexers/AddCardTemplate');
|
||||
var html = this.templateFunction();
|
||||
|
@ -14,8 +14,8 @@ define([
|
||||
'click .x-add-card': '_openSchemaModal'
|
||||
},
|
||||
|
||||
onAfterItemAdded: function () {
|
||||
this.$itemViewContainer.find('.x-add-card').parent('li').remove();
|
||||
onRender: function () {
|
||||
this.listenTo(this.collection, 'add', this.render);
|
||||
|
||||
this.templateFunction = Marionette.TemplateCache.get('Settings/Notifications/AddCardTemplate');
|
||||
var html = this.templateFunction();
|
||||
|
@ -16,8 +16,8 @@ define(['app',
|
||||
'click .x-add-card': '_addProfile'
|
||||
},
|
||||
|
||||
onAfterItemAdded: function () {
|
||||
this.$itemViewContainer.find('.x-add-card').parent('li').remove();
|
||||
onRender: function () {
|
||||
this.listenTo(this.collection, 'add', this.render);
|
||||
|
||||
this.templateFunction = Marionette.TemplateCache.get('Settings/Quality/Profile/AddCardTemplate');
|
||||
var html = this.templateFunction();
|
||||
|
Loading…
Reference in New Issue
Block a user