added global NzbDrone namespace.

This commit is contained in:
kay.one 2013-09-14 00:10:19 -07:00
commit 27c57612f4
30 changed files with 36 additions and 35 deletions

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'

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
});
});

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'
});

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()
});

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
});
});

View file

@ -8,6 +8,6 @@ define(
return Backbone.Collection.extend({
model: QualityProfileModel,
url : window.ApiRoot + '/qualityprofiles/schema'
url : window.NzbDrone.ApiRoot + '/qualityprofiles/schema'
});
});

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'
});