Commit bd9c5836 authored by Vincent Pelletier's avatar Vincent Pelletier

erp5_xhtml_style: Move main form's onsubmit handler to javascript file.

One inline javascript snippet less.
parent 56ccb491
......@@ -229,6 +229,9 @@ var addOnChangeEventHandler = function() {
- clicking a relation field wheel
- clicking on a input with type submit
*/
$("#main_form").each(function(i) {
$(this).submit(function() {changed = false; return true;});
});
$("#master div").each(function(i) {
if ($(this).attr("class") == "input") {
$(this).children().each(function() {
......
......@@ -31,7 +31,6 @@ DEPRECATION:
<body tal:attributes="class body_css_class|nothing; dir language_direction;">
<form id="main_form"
class="main_form"
onsubmit="changed=false; return true"
tal:attributes="enctype enctype | form/Form_getEnctype | nothing;
action url;
method python:str(path('form/method | string:post')).lower()">
......
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