Fix URI references for API endpoints
Change-Id: I85a39f4b361cfe05eec4f3f13dd7989c4d6f5dbf
This commit is contained in:
parent
440c7a37d5
commit
9f6d0ca09c
|
@ -71,7 +71,7 @@ function init_selectors(base_url) {
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
placeholder: "Select Project",
|
placeholder: "Select Project",
|
||||||
ajax: {
|
ajax: {
|
||||||
url: make_uri(base_url + "/api/1.0/list/project_ids"),
|
url: make_uri(base_url + "api/1.0/list/project_ids"),
|
||||||
dataType: 'jsonp',
|
dataType: 'jsonp',
|
||||||
data: function (term, page) {
|
data: function (term, page) {
|
||||||
return {
|
return {
|
||||||
|
@ -85,7 +85,7 @@ function init_selectors(base_url) {
|
||||||
initSelection: function (element, callback) {
|
initSelection: function (element, callback) {
|
||||||
var id = $(element).val();
|
var id = $(element).val();
|
||||||
if (id !== "") {
|
if (id !== "") {
|
||||||
$.ajax(make_uri(base_url + "/api/1.0/list/project_ids/" + id), {
|
$.ajax(make_uri(base_url + "api/1.0/list/project_ids/" + id), {
|
||||||
dataType: "jsonp"
|
dataType: "jsonp"
|
||||||
}).done(function (data) {
|
}).done(function (data) {
|
||||||
callback(data["project_id"]);
|
callback(data["project_id"]);
|
||||||
|
@ -105,7 +105,7 @@ function init_selectors(base_url) {
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
placeholder: "Select Vendor",
|
placeholder: "Select Vendor",
|
||||||
ajax: {
|
ajax: {
|
||||||
url: make_uri(base_url + "/api/1.0/list/vendors"),
|
url: make_uri(base_url + "api/1.0/list/vendors"),
|
||||||
dataType: 'jsonp',
|
dataType: 'jsonp',
|
||||||
data: function (term, page) {
|
data: function (term, page) {
|
||||||
return {
|
return {
|
||||||
|
@ -119,7 +119,7 @@ function init_selectors(base_url) {
|
||||||
initSelection: function (element, callback) {
|
initSelection: function (element, callback) {
|
||||||
var id = $(element).val();
|
var id = $(element).val();
|
||||||
if (id !== "") {
|
if (id !== "") {
|
||||||
$.ajax(make_uri(base_url + "/api/1.0/list/vendors/" + id), {
|
$.ajax(make_uri(base_url + "api/1.0/list/vendors/" + id), {
|
||||||
dataType: "jsonp"
|
dataType: "jsonp"
|
||||||
}).done(function (data) {
|
}).done(function (data) {
|
||||||
callback(data["vendor"]);
|
callback(data["vendor"]);
|
||||||
|
@ -139,7 +139,7 @@ function init_selectors(base_url) {
|
||||||
allowClear: true,
|
allowClear: true,
|
||||||
placeholder: "Select Release",
|
placeholder: "Select Release",
|
||||||
ajax: {
|
ajax: {
|
||||||
url: make_uri(base_url + "/api/1.0/list/releases"),
|
url: make_uri(base_url + "api/1.0/list/releases"),
|
||||||
dataType: 'jsonp',
|
dataType: 'jsonp',
|
||||||
data: function (term, page) {
|
data: function (term, page) {
|
||||||
return {
|
return {
|
||||||
|
@ -153,7 +153,7 @@ function init_selectors(base_url) {
|
||||||
initSelection: function (element, callback) {
|
initSelection: function (element, callback) {
|
||||||
var id = $(element).val();
|
var id = $(element).val();
|
||||||
if (id !== "") {
|
if (id !== "") {
|
||||||
$.ajax(make_uri(base_url + "/api/1.0/list/releases/" + id), {
|
$.ajax(make_uri(base_url + "api/1.0/list/releases/" + id), {
|
||||||
dataType: "jsonp"
|
dataType: "jsonp"
|
||||||
}).done(function (data) {
|
}).done(function (data) {
|
||||||
callback(data["release"]);
|
callback(data["release"]);
|
||||||
|
@ -174,7 +174,7 @@ function show_summary(base_url) {
|
||||||
var table_id = "data_table";
|
var table_id = "data_table";
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: make_uri(base_url + "/api/1.0/drivers"),
|
url: make_uri(base_url + "api/1.0/drivers"),
|
||||||
dataType: "jsonp",
|
dataType: "jsonp",
|
||||||
|
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
|
|
Loading…
Reference in New Issue