Commit 42330b0b authored by Romain Courteaud's avatar Romain Courteaud

erp5_document_scanner: prevent crashing the UI

Clicking on a button tag with an embedded img tag crashes everything.
The right way to fix this is probably to drop the img tag and use a CSS background url instead.
parent 52a6159d
...@@ -1047,7 +1047,8 @@ ...@@ -1047,7 +1047,8 @@
}); });
} }
throw new Error('Unhandled button: ' + evt.target.textContent); // throw new Error('Unhandled button: ' + evt.target.textContent);
return;
}, false, false) }, false, false)
////////////////////////////////////////////////// //////////////////////////////////////////////////
......
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>983.13237.65489.43861</string> </value> <value> <string>983.14351.3372.41932</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>1586875663.36</float> <float>1586942462.17</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