Commit 1a774648 authored by Roque's avatar Roque

erp5_officejs_drone_simulator: fix download log entries

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