|
|
@ -14,9 +14,9 @@ define(['app',
|
|
|
|
|
|
|
|
|
|
|
|
openSchemaModal: function () {
|
|
|
|
openSchemaModal: function () {
|
|
|
|
//TODO: Is there a better way to deal with changing URLs?
|
|
|
|
//TODO: Is there a better way to deal with changing URLs?
|
|
|
|
var schema = new NzbDrone.Settings.Indexers.Collection();
|
|
|
|
var schemaCollection = new NzbDrone.Settings.Indexers.Collection();
|
|
|
|
schema.url = '/api/indexer/schema';
|
|
|
|
schemaCollection.url = '/api/indexer/schema';
|
|
|
|
schema.fetch({
|
|
|
|
schemaCollection.fetch({
|
|
|
|
success: function (collection) {
|
|
|
|
success: function (collection) {
|
|
|
|
collection.url = '/api/indexer';
|
|
|
|
collection.url = '/api/indexer';
|
|
|
|
var model = _.first(collection.models);
|
|
|
|
var model = _.first(collection.models);
|
|
|
|