Commit b283c392 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

add a code for backward compatibility.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26688 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2f43e2f6
......@@ -185,6 +185,9 @@ function fixLeftRightHeightAndFocus(fix_height) {\n
// and modify respective main form action\n
function submitFormOnEnter(event, form, method_name){\n
if(event.keyCode == 13){\n
if (form == \'main_form\') {\n
form = getElement(form); // backward compatibility\n
}\n
form.action = method_name;\n
form.submit();\n
}\n
......
719
\ No newline at end of file
720
\ No newline at end of file
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