1
0
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:
kay.one
2013-09-14 00:10:19 -07:00
parent d5e5d6de29
commit 27c57612f4
30 changed files with 36 additions and 35 deletions
+1 -1
View File
@@ -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'
+1 -1
View File
@@ -5,7 +5,7 @@ define(
'Form/FormBuilder'
], function (IndexerModel) {
return Backbone.Collection.extend({
url : window.ApiRoot + '/indexer',
url : window.NzbDrone.ApiRoot + '/indexer',
model: IndexerModel
});
});
+1 -1
View File
@@ -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'
});
+1 -1
View File
@@ -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()
});
+1 -1
View File
@@ -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'
});
});
+1 -1
View File
@@ -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'
});