diff options
author | 2016-06-01 17:36:45 +0800 | |
---|---|---|
committer | 2016-06-01 13:42:01 +0000 | |
commit | 5eae42a2e355e671e7906aa6e0d3d885dfd85c4b (patch) | |
tree | e703c2ddaf31c23f8cb1135f9266dc7c6804b5bf /utils/test/result_collection_api/opnfv_testapi/tornado_swagger/static/o2c.html | |
parent | 17fd1aec04ec462af81a8f5ea7b96251d2d4716e (diff) |
change the usage of tornado_swagger package
changes:
move tornado_swagger package out of tornado_swagger_ui
remove tornado_swagger_ui
modify files that import tornado_swagger
originally: opnfv_testapi.tornado_swagger_ui.tornado_swagger
to: opnfv_testapi.tornado_swagger
modify setup.cfg to delete tornado_swagger_ui prefix
JIRA: FUNCTEST-286
Change-Id: I1e8972e4fbe26ad3a5d945f3aed6783d0b666a5f
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'utils/test/result_collection_api/opnfv_testapi/tornado_swagger/static/o2c.html')
-rw-r--r-- | utils/test/result_collection_api/opnfv_testapi/tornado_swagger/static/o2c.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/static/o2c.html b/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/static/o2c.html new file mode 100644 index 000000000..d32d130ec --- /dev/null +++ b/utils/test/result_collection_api/opnfv_testapi/tornado_swagger/static/o2c.html @@ -0,0 +1,15 @@ +<script> +var qp = null; +if(window.location.hash) { + qp = location.hash.substring(1); +} +else { + qp = location.search.substring(1); +} +qp = qp ? JSON.parse('{"' + qp.replace(/&/g, '","').replace(/=/g,'":"') + '"}', + function(key, value) { + return key===""?value:decodeURIComponent(value) } + ):{} +window.opener.onOAuthComplete(qp); +window.close(); +</script>
\ No newline at end of file |