mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-05 10:32:35 +01:00
fixed api root url
This commit is contained in:
parent
5e32760c6a
commit
f98002c576
@ -6,7 +6,7 @@
|
|||||||
<startup useLegacyV2RuntimeActivationPolicy="true">
|
<startup useLegacyV2RuntimeActivationPolicy="true">
|
||||||
<supportedRuntime version="v4.0" />
|
<supportedRuntime version="v4.0" />
|
||||||
</startup>
|
</startup>
|
||||||
<cassette rewriteHtml="true" cacheDirectory="cassette-cache" />
|
<cassette rewriteHtml="true" cacheDirectory="cassette-cache" debug="true" />
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<add key="ClientValidationEnabled" value="true" />
|
<add key="ClientValidationEnabled" value="true" />
|
||||||
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/// <reference path="SearchResultModel.js" />
|
/// <reference path="SearchResultModel.js" />
|
||||||
|
|
||||||
NzbDrone.AddSeries.SearchResultCollection = Backbone.Collection.extend({
|
NzbDrone.AddSeries.SearchResultCollection = Backbone.Collection.extend({
|
||||||
url: NzbDrone.Constants.ApiRoot + "/series/lookup",
|
url: NzbDrone.Constants.ApiRoot + 'series/lookup',
|
||||||
model: NzbDrone.AddSeries.SearchResultModel,
|
model: NzbDrone.AddSeries.SearchResultModel,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -13,8 +13,11 @@ if (typeof console == "undefined") {
|
|||||||
NzbDrone = new Backbone.Marionette.Application();
|
NzbDrone = new Backbone.Marionette.Application();
|
||||||
NzbDrone.AddSeries = NzbDrone.module("AddSeries");
|
NzbDrone.AddSeries = NzbDrone.module("AddSeries");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
NzbDrone.Constants = {
|
NzbDrone.Constants = {
|
||||||
ApiRoot: 'http://localhost:8080/api/v1/'
|
ApiRoot: '/api/'
|
||||||
};
|
};
|
||||||
|
|
||||||
NzbDrone.Events = {
|
NzbDrone.Events = {
|
||||||
|
@ -9,3 +9,7 @@ window.onerror = function (msg, url, line) {
|
|||||||
// Internet Explorer) will be suppressed.
|
// Internet Explorer) will be suppressed.
|
||||||
return suppressErrorAlert;
|
return suppressErrorAlert;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$(document).ajaxSuccess(function (event, XMLHttpRequest, ajaxOptionsa) {
|
||||||
|
console.log(ajaxOptionsa);
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user