1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2024-12-25 01:11:43 +00:00

fixed api root url

This commit is contained in:
kay.one 2013-01-22 21:03:57 -08:00
parent 5e32760c6a
commit f98002c576
4 changed files with 11 additions and 4 deletions

View file

@ -6,7 +6,7 @@
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />
</startup>
<cassette rewriteHtml="true" cacheDirectory="cassette-cache" />
<cassette rewriteHtml="true" cacheDirectory="cassette-cache" debug="true" />
<appSettings>
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />

View file

@ -2,7 +2,7 @@
/// <reference path="SearchResultModel.js" />
NzbDrone.AddSeries.SearchResultCollection = Backbone.Collection.extend({
url: NzbDrone.Constants.ApiRoot + "/series/lookup",
url: NzbDrone.Constants.ApiRoot + 'series/lookup',
model: NzbDrone.AddSeries.SearchResultModel,
});

View file

@ -13,8 +13,11 @@ if (typeof console == "undefined") {
NzbDrone = new Backbone.Marionette.Application();
NzbDrone.AddSeries = NzbDrone.module("AddSeries");
NzbDrone.Constants = {
ApiRoot: 'http://localhost:8080/api/v1/'
ApiRoot: '/api/'
};
NzbDrone.Events = {

View file

@ -8,4 +8,8 @@ window.onerror = function (msg, url, line) {
// If you return true, then error alerts (like in older versions of
// Internet Explorer) will be suppressed.
return suppressErrorAlert;
};
};
$(document).ajaxSuccess(function (event, XMLHttpRequest, ajaxOptionsa) {
console.log(ajaxOptionsa);
});