Commit 1a774648 authored by Roque's avatar Roque

erp5_officejs_drone_simulator: fix download log entries

See merge request !1719
parents c1b70e3d a60e21a1
Pipeline #25716 failed with stage
......@@ -445,7 +445,7 @@
return form_gadget.getContent();
})
.push(function (result) {
var i,
var i = 0,
log_content,
blob,
a,
......@@ -456,7 +456,7 @@
blob = new Blob([log_content], {type: 'text/plain'});
a = domsugar('a', {
text: 'Download Simulation LOG ' + i,
download: 'simulation_log.txt',
download: 'simulation_log_' + i + '.txt',
href: window.URL.createObjectURL(blob)
});
log = domsugar('textarea', { value: log_content });
......@@ -465,6 +465,7 @@
a.href].join(':');
document.querySelector('.container').appendChild(div);
document.querySelector('.container').appendChild(log);
i++;
}
});
});
......
......@@ -244,7 +244,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>1005.193.31229.15496</string> </value>
<value> <string>1005.37533.1915.8379</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -262,7 +262,7 @@
</tuple>
<state>
<tuple>
<float>1671108872.26</float>
<float>1673286304.13</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