From 52a83cd170cd6c465165b0386fb1250c5f288a1e Mon Sep 17 00:00:00 2001
From: Kazuhiko Shiozaki <kazuhiko@nexedi.com>
Date: Sun, 16 Aug 2009 19:15:40 +0000
Subject: [PATCH] call resizeIFrameOnLoad() in iframe tag, now it will be
 called by pagination in the iframe.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28404 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_web/WebPage_viewFieldLibrary/iframe_content.xml        | 2 +-
 bt5/erp5_web/bt/revision                                        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewFieldLibrary/iframe_content.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewFieldLibrary/iframe_content.xml
index ee4dec2bda..b32dc8f1e7 100644
--- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewFieldLibrary/iframe_content.xml
+++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/WebPage_viewFieldLibrary/iframe_content.xml
@@ -126,7 +126,7 @@
             <key> <string>_text</string> </key>
             <value> <string encoding="cdata"><![CDATA[
 
-python:\'<script type="text/javascript">addLoadEvent(resizeIFrameOnLoad)</script><iframe class="auto_height" style="border:none;width:100%%;height:600px" src="%s/asEntireHTML"></iframe>\' % here.absolute_url()
+python:\'<iframe class="auto_height" style="border:none;width:100%%;height:600px" src="%s/asEntireHTML" onload="resizeIFrameOnLoad()"></iframe>\' % here.absolute_url()
 
 ]]></string> </value>
         </item>
diff --git a/bt5/erp5_web/bt/revision b/bt5/erp5_web/bt/revision
index 4fe21da97a..7edd58a8bf 100644
--- a/bt5/erp5_web/bt/revision
+++ b/bt5/erp5_web/bt/revision
@@ -1 +1 @@
-839
\ No newline at end of file
+840
\ No newline at end of file
-- 
2.30.9