Commit 9b03eebc authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Disable search field autofocus

This make softkeyboard to always popup on mobile, which reduce a lot the page visibility.
parent caacfe2e
...@@ -20,16 +20,9 @@ ...@@ -20,16 +20,9 @@
var gadget = this; var gadget = this;
return gadget.getDeclaredGadget('input') return gadget.getDeclaredGadget('input')
.push(function (input_gadget) { .push(function (input_gadget) {
var focus = gadget.state.focus; // undefined focus is fine as well
if (gadget.state.focus === undefined && !gadget.state.extended_search) {
focus = true;
}
return input_gadget.render({ return input_gadget.render({
type: "search", type: "search",
value: gadget.state.extended_search, value: gadget.state.extended_search,
focus: focus,
name: "search", name: "search",
editable: true editable: true
}); });
......
...@@ -230,7 +230,7 @@ ...@@ -230,7 +230,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>961.1709.1577.19712</string> </value> <value> <string>963.11788.48702.26146</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1501231535.25</float> <float>1510737538.87</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