mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
added global NzbDrone namespace.
This commit is contained in:
parent
d5e5d6de29
commit
27c57612f4
30 changed files with 36 additions and 35 deletions
|
@ -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'
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue