Commit 82514e2a authored by Jérome Perrin's avatar Jérome Perrin

Also install onbeforeunload for fields inside matrixbox and listboxs

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34427 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2795b4ad
......@@ -284,6 +284,19 @@ var addOnChangeEventHandler = function() {\n
nodes[j].onchange = function() { changed = true; };\n
}\n
}\n
} \n
/* Listbox or MatrixBox */\n
if (nodes[j].nodeName == "DIV" && (\n
nodes[j].getAttribute("class") == "listbox" ||\n
nodes[j].getAttribute("class") == "MatrixContent")) {\n
\n
inputs = nodes[j].getElementsByTagName(\'input\');\n
for (k=0; k<inputs.length; k++){\n
if (inputs[k].getAttribute("type") != "hidden" &&\n
!inputs[k].onchange) {\n
inputs[k].onchange = function() { changed = true; };\n
}\n
}\n
}\n
}\n
}\n
......
920
\ No newline at end of file
921
\ 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