1
0
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:
Mark McDowall 2013-07-26 00:46:24 -07:00
parent 6522b38584
commit 224ef64e6e
3 changed files with 6 additions and 6 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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();