Commit 2ceffaa9 authored by Arnaud Fontaine's avatar Arnaud Fontaine Committed by Yusei Tahara

Support properly HTML5 implicit form submission.

From Chromium 31, pressing enter key to select ListBox page submit the form
through JS (submitFormOnEnter) *and* wrongly on the default button, at the end
following HTML5 behavior (4.10.22.2 Implicit submission).

Conflicts:
	product/ERP5/bootstrap/erp5_xhtml_style/bt/change_log
	product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
parent 86fc5cb4
...@@ -187,6 +187,8 @@ function submitFormOnEnter(event, form, method_name, clear_changed_flag, element ...@@ -187,6 +187,8 @@ function submitFormOnEnter(event, form, method_name, clear_changed_flag, element
changed = false;\n changed = false;\n
}\n }\n
form.submit();\n form.submit();\n
event.preventDefault();\n
return false;\n
}\n }\n
}\n }\n
\n \n
......
2013-12-10 arnaud.fontaine
* Support properly HTML5 implicit form submission.
2013-6-20 yusei 2013-6-20 yusei
* Fix erp5.js to keep it compatible with jquery 1.4. .prop() is available after jquery 1.6. * Fix erp5.js to keep it compatible with jquery 1.4. .prop() is available after jquery 1.6.
......
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