mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
Settings will load with zero notifications
This commit is contained in:
parent
07073be73c
commit
f25df49068
13 changed files with 69 additions and 83 deletions
|
@ -10,19 +10,19 @@ define(['app',
|
|||
itemViewContainer: '#x-indexers',
|
||||
template : 'Settings/Indexers/CollectionTemplate',
|
||||
|
||||
ui: {
|
||||
'addCard': '.x-add-card'
|
||||
},
|
||||
|
||||
events: {
|
||||
'click .x-add-card': '_openSchemaModal'
|
||||
},
|
||||
|
||||
onRender: function () {
|
||||
this.listenTo(this.collection, 'add', this.render);
|
||||
|
||||
this.templateFunction = Marionette.TemplateCache.get('Settings/Indexers/AddCardTemplate');
|
||||
var html = this.templateFunction();
|
||||
|
||||
this.$itemViewContainer.append(html);
|
||||
appendHtml: function(collectionView, itemView, index){
|
||||
collectionView.ui.addCard.parent('li').before(itemView.el);
|
||||
},
|
||||
|
||||
|
||||
_openSchemaModal: function () {
|
||||
var self = this;
|
||||
//TODO: Is there a better way to deal with changing URLs?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue