Commit d5fe89ea authored by Ivan Tyagov's avatar Ivan Tyagov

In both cases (icluding backwards compatability) do work with HTML elements...

In both cases (icluding backwards compatability) do work with HTML elements rather than their jQuery representation (for consistency).

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