From e1272b4f34ece80ce6be89affddf5bb5e44d880c Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 1 Aug 2013 08:25:09 -0700 Subject: [PATCH] Notification and Indexer settings are enabled by default on add NzbClub and omgwtfnzbs are off by default --- UI/Settings/Indexers/CollectionView.js | 9 ++++++--- UI/Settings/Notifications/AddItemView.js | 4 +++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/UI/Settings/Indexers/CollectionView.js b/UI/Settings/Indexers/CollectionView.js index 063a78316..df09ff132 100644 --- a/UI/Settings/Indexers/CollectionView.js +++ b/UI/Settings/Indexers/CollectionView.js @@ -22,7 +22,6 @@ define(['app', collectionView.ui.addCard.parent('li').before(itemView.el); }, - _openSchemaModal: function () { var self = this; //TODO: Is there a better way to deal with changing URLs? @@ -32,8 +31,12 @@ define(['app', success: function (collection) { collection.url = '/api/indexer'; var model = _.first(collection.models); - model.set('id', undefined); - model.set('name', ''); + + model.set({ + id: undefined, + name: '', + enable: true + }); var view = new IndexerEditView({ model: model, indexerCollection: self.collection}); App.modalRegion.show(view); diff --git a/UI/Settings/Notifications/AddItemView.js b/UI/Settings/Notifications/AddItemView.js index dea64786c..e6b320b7d 100644 --- a/UI/Settings/Notifications/AddItemView.js +++ b/UI/Settings/Notifications/AddItemView.js @@ -25,7 +25,9 @@ define([ this.model.set({ id: undefined, - name: this.model.get('implementationName') + name: this.model.get('implementationName'), + onGrab: true, + onDownload: true }); var editView = new EditView({ model: this.model, notificationCollection: this.notificationCollection });