From 80097691f3ed0adb4406906ef619c1042c2219ea Mon Sep 17 00:00:00 2001 From: KIRAN KASHALKAR Date: Thu, 20 Apr 2017 10:58:04 -0400 Subject: [PATCH] Revert "Bug 209" This reverts commit 8ab41d9e9bd54549a0d9eda1255b570b22ca9ca8. --- .../widgets/skyquake_container/skyquakeContainerSource.js | 2 +- skyquake/plugins/accounts/src/account/accountSource.js | 2 +- .../src/src/components/filemanager/FileManagerSource.js | 4 ++-- skyquake/plugins/launchpad/src/launchpadFleetSource.js | 2 +- .../plugins/launchpad/src/recordViewer/recordViewSource.js | 6 +++--- .../launchpad/src/topologyL2View/topologyL2Source.js | 2 +- .../plugins/launchpad/src/topologyView/topologySource.js | 2 +- skyquake/plugins/launchpad/src/vnfr/vnfrSource.js | 2 +- 8 files changed, 11 insertions(+), 11 deletions(-) diff --git a/skyquake/framework/widgets/skyquake_container/skyquakeContainerSource.js b/skyquake/framework/widgets/skyquake_container/skyquakeContainerSource.js index 8afaf83f3..75cfec79f 100644 --- a/skyquake/framework/widgets/skyquake_container/skyquakeContainerSource.js +++ b/skyquake/framework/widgets/skyquake_container/skyquakeContainerSource.js @@ -79,7 +79,7 @@ export default { remote: function(state, location, streamSource) { return new Promise((resolve, reject) => { $.ajax({ - url: '//' + window.location.hostname + ':' + window.location.port + '/socket-polling?api_server=' + API_SERVER, + url: '//' + window.location.hostname + ':' + window.location.port + '/socket-polling', type: 'POST', beforeSend: Utils.addAuthorizationStub, data: { diff --git a/skyquake/plugins/accounts/src/account/accountSource.js b/skyquake/plugins/accounts/src/account/accountSource.js index 45da0fb9a..8c1dd6d37 100644 --- a/skyquake/plugins/accounts/src/account/accountSource.js +++ b/skyquake/plugins/accounts/src/account/accountSource.js @@ -38,7 +38,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: { diff --git a/skyquake/plugins/composer/src/src/components/filemanager/FileManagerSource.js b/skyquake/plugins/composer/src/src/components/filemanager/FileManagerSource.js index 1f0fd80f9..ddfac1694 100644 --- a/skyquake/plugins/composer/src/src/components/filemanager/FileManagerSource.js +++ b/skyquake/plugins/composer/src/src/components/filemanager/FileManagerSource.js @@ -155,7 +155,7 @@ const FileManagerSource = { return new Promise(function(resolve, reject) { //api/operational/download-jobs/job/ $.ajax({ - url: '/socket-polling?api_server=' + API_SERVER, + url: '/socket-polling', type: 'POST', beforeSend: Utils.addAuthorizationStub, data: { @@ -180,7 +180,7 @@ const FileManagerSource = { return new Promise(function(resolve, reject) { //api/operational/download-jobs/job/ $.ajax({ - url: '/socket-polling?api_server=' + API_SERVER, + url: '/socket-polling', type: 'POST', beforeSend: Utils.addAuthorizationStub, data: { diff --git a/skyquake/plugins/launchpad/src/launchpadFleetSource.js b/skyquake/plugins/launchpad/src/launchpadFleetSource.js index fff6fae8c..cde71160f 100644 --- a/skyquake/plugins/launchpad/src/launchpadFleetSource.js +++ b/skyquake/plugins/launchpad/src/launchpadFleetSource.js @@ -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: { diff --git a/skyquake/plugins/launchpad/src/recordViewer/recordViewSource.js b/skyquake/plugins/launchpad/src/recordViewer/recordViewSource.js index 49c312288..a3b2d6796 100644 --- a/skyquake/plugins/launchpad/src/recordViewer/recordViewSource.js +++ b/skyquake/plugins/launchpad/src/recordViewer/recordViewSource.js @@ -94,7 +94,7 @@ export default { return new Promise(function(resolve, reject) { console.log('Getting NSR Socket'); $.ajax({ - url: '/socket-polling?api_server=' + API_SERVER, + url: '/socket-polling', type: 'POST', beforeSend: Utils.addAuthorizationStub, data: { @@ -117,7 +117,7 @@ export default { return new Promise(function(resolve, reject) { console.log('Getting Job Socket'); $.ajax({ - url: '/socket-polling?api_server=' + API_SERVER, + url: '/socket-polling', type: 'POST', beforeSend: Utils.addAuthorizationStub, data: { @@ -139,7 +139,7 @@ export default { return new Promise(function(resolve, reject) { console.log('Getting VNFR Socket for: ' + state.recordID); $.ajax({ - url: '/socket-polling?api_server=' + API_SERVER, + url: '/socket-polling', type: 'POST', beforeSend: Utils.addAuthorizationStub, data: { diff --git a/skyquake/plugins/launchpad/src/topologyL2View/topologyL2Source.js b/skyquake/plugins/launchpad/src/topologyL2View/topologyL2Source.js index 756c775e4..fd38d84da 100644 --- a/skyquake/plugins/launchpad/src/topologyL2View/topologyL2Source.js +++ b/skyquake/plugins/launchpad/src/topologyL2View/topologyL2Source.js @@ -41,7 +41,7 @@ export default { return resolve(false); } $.ajax({ - url: '/socket-polling?api_server=' + API_SERVER, + url: '/socket-polling', type: 'POST', beforeSend: Utils.addAuthorizationStub, data: { diff --git a/skyquake/plugins/launchpad/src/topologyView/topologySource.js b/skyquake/plugins/launchpad/src/topologyView/topologySource.js index b570082ec..04e1c66b8 100644 --- a/skyquake/plugins/launchpad/src/topologyView/topologySource.js +++ b/skyquake/plugins/launchpad/src/topologyView/topologySource.js @@ -42,7 +42,7 @@ export default { return resolve(false); } $.ajax({ - url: '/socket-polling?api_server=' + API_SERVER, + url: '/socket-polling', type: 'POST', beforeSend: Utils.addAuthorizationStub, data: { diff --git a/skyquake/plugins/launchpad/src/vnfr/vnfrSource.js b/skyquake/plugins/launchpad/src/vnfr/vnfrSource.js index 327bdb9f1..782f32263 100644 --- a/skyquake/plugins/launchpad/src/vnfr/vnfrSource.js +++ b/skyquake/plugins/launchpad/src/vnfr/vnfrSource.js @@ -42,7 +42,7 @@ export default { } console.log(nsr_id) $.ajax({ - url: '//' + window.location.hostname + ':' + window.location.port + '/socket-polling?api_server=' + API_SERVER, + url: '//' + window.location.hostname + ':' + window.location.port + '/socket-polling', type: 'POST', beforeSend: Utils.addAuthorizationStub, data: { -- 2.25.1