X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FlaunchpadFleetSource.js;h=9f72147a15095dbc6e224955205d2923d0d2f69d;hp=0e9b34e9b3c81deb96f4bc21004ef408a985ea9c;hb=28412d0042632687d765d239cbb3ff0523a131b9;hpb=dfe972ff7c9f7b6b1d730e66b0b2aa8df2ce329b diff --git a/skyquake/plugins/launchpad/src/launchpadFleetSource.js b/skyquake/plugins/launchpad/src/launchpadFleetSource.js index 0e9b34e9b..9f72147a1 100644 --- a/skyquake/plugins/launchpad/src/launchpadFleetSource.js +++ b/skyquake/plugins/launchpad/src/launchpadFleetSource.js @@ -86,7 +86,7 @@ module.exports = function(Alt) { console.log(id) return new Promise(function(resolve, reject) { $.ajax({ - url: 'api/nsr/' + id + '?api_server=' + API_SERVER, + url: 'api/nsr/' + encodeURIComponent(id) + '?api_server=' + API_SERVER, type: 'DELETE', beforeSend: Utils.addAuthorizationStub, success: function(data) { @@ -106,7 +106,7 @@ module.exports = function(Alt) { return resolve(false); } $.ajax({ - url: '/socket-polling?api_server=' + API_SERVER , + url: '/socket-polling', type: 'POST', beforeSend: Utils.addAuthorizationStub, data: { @@ -129,7 +129,7 @@ module.exports = function(Alt) { remote: function(state, id, status) { return new Promise(function(resolve, reject) { $.ajax({ - url: 'api/nsr/' + id + '/admin-status?api_server=' + API_SERVER , + url: 'api/nsr/' + encodeURIComponent(id) + '/admin-status?api_server=' + API_SERVER , type:'PUT', beforeSend: Utils.addAuthorizationStub, data: {