mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-25 17:17:02 +00:00
Cleaned up a bit
This commit is contained in:
parent
6144ff8f3e
commit
5660b5086c
3 changed files with 8 additions and 8 deletions
|
@ -66,7 +66,7 @@ public List<Indexer> Schema()
|
|||
|
||||
indexers.Add(newznab);
|
||||
|
||||
return indexers.OrderBy(n => n.Name).ToList();
|
||||
return indexers;
|
||||
}
|
||||
|
||||
private Indexer ToIndexer(IndexerDefinition definition)
|
||||
|
|
|
@ -14,9 +14,9 @@ define(['app',
|
|||
|
||||
openSchemaModal: function () {
|
||||
//TODO: Is there a better way to deal with changing URLs?
|
||||
var schema = new NzbDrone.Settings.Indexers.Collection();
|
||||
schema.url = '/api/indexer/schema';
|
||||
schema.fetch({
|
||||
var schemaCollection = new NzbDrone.Settings.Indexers.Collection();
|
||||
schemaCollection.url = '/api/indexer/schema';
|
||||
schemaCollection.fetch({
|
||||
success: function (collection) {
|
||||
collection.url = '/api/indexer';
|
||||
var model = _.first(collection.models);
|
||||
|
|
|
@ -10,11 +10,11 @@ define(['app', 'Settings/Notifications/ItemView', 'Settings/Notifications/AddVie
|
|||
},
|
||||
|
||||
openSchemaModal: function () {
|
||||
var schema = new NzbDrone.Settings.Notifications.Collection();
|
||||
schema.url = '/api/notification/schema';
|
||||
schema.fetch();
|
||||
var schemaCollection = new NzbDrone.Settings.Notifications.Collection();
|
||||
schemaCollection.url = '/api/notification/schema';
|
||||
schemaCollection.fetch();
|
||||
|
||||
var view = new NzbDrone.Settings.Notifications.AddView({ collection: schema});
|
||||
var view = new NzbDrone.Settings.Notifications.AddView({ collection: schemaCollection});
|
||||
NzbDrone.modalRegion.show(view);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue