Commit f7a38511 authored by Roque Porchetto's avatar Roque Porchetto

Download urls point to local data stream.

parent ce292fe3
......@@ -4,15 +4,10 @@
XMLHttpRequest, location, console) {
"use strict";
function download(context, evt) {
//<a href="path/to/file" download>Click here to download</a>
//Content-Type: application/octet-stream
//Content-Disposition: attachment; filename="picture.png"
var link = document.createElement('a');
link.download = "download_tool.zip";
link.href = "https://softinst75195.host.vifib.net/erp5/data_stream_module/embulk_download_script/getData";
link.href = window.location.origin + "/erp5/data_stream_module/embulk_download_script/getData";
link.click();
//var url = "https://softinst75195.host.vifib.net/erp5/data_stream_module/embulk_download_script/getData";
//window.location.replace(url);
}
rJS(window)
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>960.2726.23087.28433</string> </value>
<value> <string>960.12931.34980.3549</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1497448829.8</float>
<float>1498059105.63</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -4,15 +4,10 @@
XMLHttpRequest, location, console) {
"use strict";
function download(context, evt) {
//<a href="path/to/file" download>Click here to download</a>
//Content-Type: application/octet-stream
//Content-Disposition: attachment; filename="picture.png"
var link = document.createElement('a');
link.download = "ingestion_tool.zip";
link.href = "https://softinst75195.host.vifib.net/erp5/data_stream_module/embulk_ingestion_script/getData";
link.href = window.location.origin + "/erp5/data_stream_module/embulk_download_script/getData";
link.click();
//var url = "https://softinst75195.host.vifib.net/erp5/data_stream_module/embulk_download_script/getData";
//window.location.replace(url);
}
rJS(window)
......
......@@ -234,7 +234,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>960.12840.5842.60211</string> </value>
<value> <string>960.12849.2635.64034</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>1498054142.27</float>
<float>1498059104.24</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment