diff options
author | Christopher Lott (cl778h) <clott@research.att.com> | 2017-07-10 14:04:15 -0400 |
---|---|---|
committer | Christopher Lott (cl778h) <clott@research.att.com> | 2017-07-10 14:10:04 -0400 |
commit | 99565bb6bd87cfc46591cea73985c58c3a3697dd (patch) | |
tree | 3d90220524af46b157a3fc9d7c555c711452c139 /ecomp-portal-FE-common/client/app/views/widget-onboarding | |
parent | fec1ab242c9086a32b04e3ded4518dd20eeca7d3 (diff) |
[PORTAL-20,PORTAL-23,PORTAL-32] Repair defects
PORTAL-20: remove mariadb client reference from be-common pom
PORTAL-23: Release Portal's SDK version 1.1.0
PORTAL-32: API URL correction for onboarded Apps
Change-Id: If75b54ca9202f94ce63c59343b94384da1040912
Signed-off-by: Christopher Lott (cl778h) <clott@research.att.com>
Diffstat (limited to 'ecomp-portal-FE-common/client/app/views/widget-onboarding')
-rw-r--r-- | ecomp-portal-FE-common/client/app/views/widget-onboarding/widget-onboarding.controller.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ecomp-portal-FE-common/client/app/views/widget-onboarding/widget-onboarding.controller.js b/ecomp-portal-FE-common/client/app/views/widget-onboarding/widget-onboarding.controller.js index 661c63a3..0e7fd9fb 100644 --- a/ecomp-portal-FE-common/client/app/views/widget-onboarding/widget-onboarding.controller.js +++ b/ecomp-portal-FE-common/client/app/views/widget-onboarding/widget-onboarding.controller.js @@ -189,9 +189,16 @@ } var a = document.createElement('a'); var blob = new Blob([data], {type: 'application/octet-stream'}); - a.href = URL.createObjectURL(blob); + var url = window.URL.createObjectURL(blob); + a.href = url; a.download = filename; + document.body.appendChild(a); a.click(); + + setTimeout(function(){ + document.body.removeChild(a); + window.URL.revokeObjectURL(url); + }, 100); }); }; |