Commit 960111ab authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_document_scanner: Reset cropper data and display capture button at the right side

parent 3331a07f
......@@ -303,12 +303,7 @@
]);
})
.push(function (result_list) {
var button_list = [
domsugar('button', {type: 'button',
'class': 'take-picture-btn ui-btn-icon-left ui-icon-circle',
text: result_list[1][0]
})
],
var button_list = [],
div;
// Only display the change camera if device has at least 2 cameras
if (result_list[0].length > 1) {
......@@ -319,6 +314,11 @@
})
);
}
button_list.push(domsugar('button', {
type: 'button',
'class': 'take-picture-btn ui-btn-icon-left ui-icon-circle',
text: result_list[1][0]
}));
div = domsugar('div', {'class': 'camera'}, [
domsugar('div', {'class': 'camera-header'}, [
......@@ -670,6 +670,7 @@
.push(function (device_id) {
return gadget.changeState({
display_step: 'display_video',
preferred_cropped_canvas_data: {},
device_id: device_id
});
});
......
......@@ -244,7 +244,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>981.61543.1022.31709</string> </value>
<value> <string>981.62898.35786.34542</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -262,7 +262,7 @@
</tuple>
<state>
<tuple>
<float>1582118047.13</float>
<float>1582163875.18</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