projects
/
osm
/
UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b third try
[osm/UI.git]
/
skyquake
/
plugins
/
launchpad
/
src
/
virtual_links
/
nsVirtualLinkCreateSource.js
diff --git
a/skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateSource.js
b/skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateSource.js
index
f4f8eab
..
7e4f02a
100644
(file)
--- a/
skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateSource.js
+++ b/
skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateSource.js
@@
-34,7
+34,7
@@
export default {
remote(state, nsrId, payload) {
return new Promise(function(resolve, reject) {
$.ajax({
remote(state, nsrId, payload) {
return new Promise(function(resolve, reject) {
$.ajax({
- url: 'api/nsr/' +
nsrId
+ '/vld' + '?api_server=' + API_SERVER,
+ url: 'api/nsr/' +
encodeURIComponent(nsrId)
+ '/vld' + '?api_server=' + API_SERVER,
type: 'POST',
beforeSend: Utils.addAuthorizationStub,
dataType:'json',
type: 'POST',
beforeSend: Utils.addAuthorizationStub,
dataType:'json',
@@
-59,7
+59,7
@@
export default {
remote(state, nsrId, vldId) {
return new Promise(function(resolve, reject) {
$.ajax({
remote(state, nsrId, vldId) {
return new Promise(function(resolve, reject) {
$.ajax({
- url: 'api/nsr/' +
nsrId + '/vld/' + vldId
+ '?api_server=' + API_SERVER,
+ url: 'api/nsr/' +
encodeURIComponent(nsrId) + '/vld/' + encodeURIComponent(vldId)
+ '?api_server=' + API_SERVER,
type: 'DELETE',
beforeSend: Utils.addAuthorizationStub,
success: function(data) {
type: 'DELETE',
beforeSend: Utils.addAuthorizationStub,
success: function(data) {
@@
-82,7
+82,7
@@
export default {
remote(state, nsrId, vldId, vld) {
return new Promise(function(resolve, reject) {
$.ajax({
remote(state, nsrId, vldId, vld) {
return new Promise(function(resolve, reject) {
$.ajax({
- url: 'api/nsr/' +
nsrId + '/vld/' + vldId
+ '?api_server=' + API_SERVER,
+ url: 'api/nsr/' +
encodeURIComponent(nsrId) + '/vld/' + encodeURIComponent(vldId)
+ '?api_server=' + API_SERVER,
type: 'PUT',
beforeSend: Utils.addAuthorizationStub,
dataType:'json',
type: 'PUT',
beforeSend: Utils.addAuthorizationStub,
dataType:'json',