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