Commit cef8cfcb authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Drop input field auto focus

Autofocus is not user friendly on mobile, as it popup the onscreen keyboard.
It make form_list difficult to read for example.
parent 56d9eb14
...@@ -573,7 +573,6 @@ ...@@ -573,7 +573,6 @@
);\n );\n
})\n })\n
.push(function (main_gadget) {\n .push(function (main_gadget) {\n
var input;\n
// Append loaded gadget in the page\n // Append loaded gadget in the page\n
if (main_gadget !== undefined) {\n if (main_gadget !== undefined) {\n
return main_gadget.getElement()\n return main_gadget.getElement()\n
...@@ -596,13 +595,6 @@ ...@@ -596,13 +595,6 @@
element.appendChild(content_container);\n element.appendChild(content_container);\n
\n \n
$(element).trigger("create");\n $(element).trigger("create");\n
\n
input = element.querySelector("input");\n
if ((input !== null) && (!input.readOnly)) {\n
input.focus();\n
input.select();\n
}\n
\n
\n \n
return updateHeader(gadget);\n return updateHeader(gadget);\n
// XXX Drop notification\n // XXX Drop notification\n
...@@ -793,7 +785,7 @@ ...@@ -793,7 +785,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>948.17186.10699.61269</string> </value> <value> <string>948.17438.33512.7714</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -811,7 +803,7 @@ ...@@ -811,7 +803,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1452007398.41</float> <float>1452007617.7</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