X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FcreateSource.js;fp=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FcreateSource.js;h=6c837a7f92db638d181629a7e5ac5105387f8006;hp=d9271d630305fe7210f3ba2860a134757368a215;hb=6620bca06b9874e68e8bc11ce28b7a6eeda5cc03;hpb=12e305918188d2eb4f3b2eb33e325a02d3866405 diff --git a/skyquake/plugins/launchpad/src/createSource.js b/skyquake/plugins/launchpad/src/createSource.js index d9271d630..6c837a7f9 100644 --- a/skyquake/plugins/launchpad/src/createSource.js +++ b/skyquake/plugins/launchpad/src/createSource.js @@ -29,7 +29,7 @@ module.exports = { remote: function() { return new Promise(function(resolve, reject) { $.ajax({ - url: '//' + window.location.hostname + ':' + NODE_PORT + '/api/launchpad/network-service?api_server=' + API_SERVER, + url: '//' + window.location.hostname + ':' + window.location.port + '/api/launchpad/network-service?api_server=' + API_SERVER, type: 'GET', beforeSend: Utils.addAuthorizationStub, success: function(data) { @@ -46,7 +46,7 @@ module.exports = { return { remote: function(state, environment) { return $.ajax({ - url: '//' + window.location.hostname + ':' + NODE_PORT + '/api/launchpad/environment?api_server=' + API_SERVER, + url: '//' + window.location.hostname + ':' + window.location.port + '/api/launchpad/environment?api_server=' + API_SERVER, type: 'POST', beforeSend: Utils.addAuthorizationStub, dataType: 'json', @@ -65,7 +65,7 @@ module.exports = { remote: function() { return new Promise(function(resolve, reject) { $.ajax({ - url: '//' + window.location.hostname + ':' + NODE_PORT + '/api/launchpad/pools?api_server=' + API_SERVER, + url: '//' + window.location.hostname + ':' + window.location.port + '/api/launchpad/pools?api_server=' + API_SERVER, type: 'GET', beforeSend: Utils.addAuthorizationStub, success: function(data) { @@ -83,7 +83,7 @@ module.exports = { remote: function() { return new Promise(function(resolve, reject) { $.ajax({ - url: '//' + window.location.hostname + ':' + NODE_PORT + '/api/launchpad/sla-params?api_server=' + API_SERVER, + url: '//' + window.location.hostname + ':' + window.location.port + '/api/launchpad/sla-params?api_server=' + API_SERVER, type: 'GET', beforeSend: Utils.addAuthorizationStub, success: function(data) {