Commit 24d292d9 authored by Ivan Tyagov's avatar Ivan Tyagov

Access directly form element without jQuery.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42676 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7d55e4ed
...@@ -174,7 +174,7 @@ function submitFormOnEnter(event, form, method_name, clear_changed_flag, element ...@@ -174,7 +174,7 @@ function submitFormOnEnter(event, form, method_name, clear_changed_flag, element
if (clear_changed_flag == null){ clear_changed_flag = false; }\n if (clear_changed_flag == null){ clear_changed_flag = false; }\n
if(event.keyCode == 13){\n if(event.keyCode == 13){\n
if (form == "main_form") {\n if (form == "main_form") {\n
form = $("#"+form).get(); // backward compatibility\n form = document.forms[form]; // backward compatibility\n
}\n }\n
form.action = method_name;\n form.action = method_name;\n
if (clear_changed_flag==true) {\n if (clear_changed_flag==true) {\n
......
10 11
\ No newline at end of file \ 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