app/assets/javascripts/katello/containers/container.js in katello-3.5.0.rc1 vs app/assets/javascripts/katello/containers/container.js in katello-3.5.0.rc2

- old
+ new

@@ -57,11 +57,11 @@ populateCapsules = function() { var capsuleDropdown = $('#capsule_id'), noCapsules = $("#no_capsules"), org = getOrg(), spinner = $("#load_capsules"), - url = "/api/smart_proxies", + url = foreman_url("/api/smart_proxies"), params = { organization_id: getOrg(), search: "feature = \"Pulp Node\" or feature = \"Pulp\"", per_page: 9999999, }; @@ -92,11 +92,11 @@ }, populateEnvironments = function() { var environmentDropdown = $('#kt_environment_id'), org = getOrg(), spinner = $("#load_environments"), - url = "/katello/api/organizations/" + org + "/environments"; + url = foreman_url("/katello/api/organizations/" + org + "/environments"); resetEnvironments(); if (org !== "") { showSpinner(spinner, true); $.getJSON(url, {}) @@ -118,11 +118,11 @@ populateContentViews = function() { var contentViewDropdown = $('#content_view_id'), noCV = $("#no_content_views"), env = getEnvironment(), spinner = $("#load_content_views"), - url = "/katello/api/organizations/" + getOrg() + "/content_views", + url = foreman_url("/katello/api/organizations/" + getOrg() + "/content_views"); params = { environment_id : env }; resetContentViews(); @@ -152,11 +152,11 @@ populateRepositories = function() { var reposDropdown = $("#repository_id"), noRepos = $("#no_repositories"), cv = getContentView(), spinner = $("#load_repositories"), - url = "/katello/api/repositories/", + url = foreman_url("/katello/api/repositories/"), params = { organization_id: getOrg(), content_view_id: cv, environment_id: getEnvironment(), content_type: "docker" @@ -189,11 +189,11 @@ }, populateTags = function() { var repo = getRepo(), tagsDropdown = $("#tag_id"), spinner = $("#load_tags"), - url = "/katello/api/repositories/" + repo + "/docker_tags", + url = foreman_url("/katello/api/repositories/" + repo + "/docker_tags"), params = {}; resetTags(); if (repo !== "") { showSpinner(spinner, true); @@ -290,6 +290,6 @@ KT.container.setup(); }); $(window).load(function() { KT.container.enableNext(false); -}); \ No newline at end of file +});