X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fplugins%2Flaunchpad%2Fsrc%2FlaunchpadFleetSource.js;h=9f72147a15095dbc6e224955205d2923d0d2f69d;hb=0e6ae9b24f70eaa4498003976a0f9b783c6e5aea;hp=dac8a826ffbef92c715dae1be228e1949342d983;hpb=5887e136dc63a909acba0e529dacf383df9061d7;p=osm%2FUI.git diff --git a/skyquake/plugins/launchpad/src/launchpadFleetSource.js b/skyquake/plugins/launchpad/src/launchpadFleetSource.js index dac8a826f..9f72147a1 100644 --- a/skyquake/plugins/launchpad/src/launchpadFleetSource.js +++ b/skyquake/plugins/launchpad/src/launchpadFleetSource.js @@ -1,5 +1,5 @@ /* - * + * * Copyright 2016 RIFT.IO Inc * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -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: {