mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
added global NzbDrone namespace.
This commit is contained in:
@@ -5,7 +5,7 @@ define(
|
||||
], function (SettingsModelBase) {
|
||||
return SettingsModelBase.extend({
|
||||
|
||||
url : window.ApiRoot + '/settings/host',
|
||||
url : window.NzbDrone.ApiRoot + '/settings/host',
|
||||
successMessage: 'General settings saved',
|
||||
errorMessage : 'Failed to save general settings'
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ define(
|
||||
'Form/FormBuilder'
|
||||
], function (IndexerModel) {
|
||||
return Backbone.Collection.extend({
|
||||
url : window.ApiRoot + '/indexer',
|
||||
url : window.NzbDrone.ApiRoot + '/indexer',
|
||||
model: IndexerModel
|
||||
});
|
||||
});
|
||||
|
||||
@@ -4,7 +4,7 @@ define(
|
||||
'Settings/SettingsModelBase'
|
||||
], function (ModelBase) {
|
||||
return ModelBase.extend({
|
||||
url : window.ApiRoot + '/config/naming',
|
||||
url : window.NzbDrone.ApiRoot + '/config/naming',
|
||||
successMessage: 'MediaManagement settings saved',
|
||||
errorMessage : 'Couldn\'t save naming settings'
|
||||
});
|
||||
|
||||
@@ -45,7 +45,7 @@ define(
|
||||
|
||||
var promise = $.ajax({
|
||||
type: 'GET',
|
||||
url : window.ApiRoot + '/config/naming/samples',
|
||||
url : window.NzbDrone.ApiRoot + '/config/naming/samples',
|
||||
data: this.model.toJSON()
|
||||
});
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ define(
|
||||
'Settings/Notifications/Model'
|
||||
], function (NotificationModel) {
|
||||
return Backbone.Collection.extend({
|
||||
url : window.ApiRoot + '/notification',
|
||||
url : window.NzbDrone.ApiRoot + '/notification',
|
||||
model: NotificationModel
|
||||
});
|
||||
});
|
||||
|
||||
@@ -8,6 +8,6 @@ define(
|
||||
|
||||
return Backbone.Collection.extend({
|
||||
model: QualityProfileModel,
|
||||
url : window.ApiRoot + '/qualityprofiles/schema'
|
||||
url : window.NzbDrone.ApiRoot + '/qualityprofiles/schema'
|
||||
});
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
define(['app',
|
||||
'Settings/SettingsModelBase'], function (App, SettingsModelBase) {
|
||||
return SettingsModelBase.extend({
|
||||
url : window.ApiRoot + '/settings',
|
||||
url : window.NzbDrone.ApiRoot + '/settings',
|
||||
successMessage: 'Settings saved',
|
||||
errorMessage : 'Failed to save settings'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user