[Erp5-report] r34301 fabien - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: Skin...
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Apr 6 15:16:23 CEST 2010
Author: fabien
Date: Tue Apr 6 15:16:20 2010
New Revision: 34301
URL: http://svn.erp5.org?rev=34301&view=rev
Log:
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).
Modified:
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml
erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml?rev=34301&r1=34300&r2=34301&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml [utf8] Tue Apr 6 15:16:20 2010
@@ -238,12 +238,12 @@
}\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 @@
}\n
}\n
\n
+addLoadEvent(resizeIFrameOnLoad);\n
addLoadEvent(addOnChangeEventHandler);\n
addLoadEvent(indexAllCheckBoxesAtBTInstallationOnLoad);\n
Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=34301&r1=34300&r2=34301&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] Tue Apr 6 15:16:20 2010
@@ -1,1 +1,1 @@
-916
+918
More information about the Erp5-report
mailing list