X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FlaunchpadFleetSource.js;h=9f72147a15095dbc6e224955205d2923d0d2f69d;hb=28412d0042632687d765d239cbb3ff0523a131b9;hp=cde71160ff2f69d136a38afa6d1d9d85101232ec;hpb=6f5b417dfbeddcd8d452dcf156f75c293f22b74c;p=osm%2FUI.git diff --git a/skyquake/plugins/launchpad/src/launchpadFleetSource.js b/skyquake/plugins/launchpad/src/launchpadFleetSource.js index cde71160f..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) { @@ -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: {