Commit 68226684 authored by Fabien Morin's avatar Fabien Morin

call resizeIFrameOnLoad on load to resize all iframe at body load time. This...

call resizeIFrameOnLoad on load to resize all iframe at body load time. This make possible to not call it on the object element (which is forbiden in XHTML 1.0 strict).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34301 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 46f7a1f4
......@@ -238,12 +238,12 @@ function showPopik(dom_id, what, delay){\n
}\n
\n
var resizeIFrameOnLoad = function() {\n
var iframe_list = window.getElementsByTagAndClassName("iframe", "auto_height");\n
for( var i=0; i<iframe_list.length; i++) {\n
var iframe = iframe_list[i];\n
var doc = iframe.contentWindow.document.documentElement;\n
var body = iframe.contentWindow.document.body;\n
iframe.style.height = doc.offsetHeight + \'px\';\n
var object_list = window.getElementsByTagAndClassName("object", "auto_height");\n
for( var i=0; i<object_list.length; i++) {\n
var object_document = object_list[i];\n
var doc = object_document.contentDocument.documentElement;\n
var body = object_document.contentDocument.body;\n
object_document.style.height = doc.offsetHeight + \'px\';\n
}\n
}\n
\n
......@@ -289,6 +289,7 @@ var addOnChangeEventHandler = function() {\n
}\n
}\n
\n
addLoadEvent(resizeIFrameOnLoad);\n
addLoadEvent(addOnChangeEventHandler);\n
addLoadEvent(indexAllCheckBoxesAtBTInstallationOnLoad);\n
......
916
\ No newline at end of file
918
\ 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