You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2008/08/18 11:03:55 UTC

svn commit: r686703 - in /myfaces/tobago/branches/tobago-1.0.x/theme: scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/ standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/sc...

Author: weber
Date: Mon Aug 18 02:03:53 2008
New Revision: 686703

URL: http://svn.apache.org/viewvc?rev=686703&view=rev
Log:
(TOBAGO-694) Unresponsive image url blocks tobago
<http://issues.apache.org/jira/browse/TOBAGO-694>

Modified:
    myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java
    myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java?rev=686703&r1=686702&r2=686703&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/PageRenderer.java Mon Aug 18 02:03:53 2008
@@ -470,6 +470,9 @@
     //if (debugMode) {
     writer.writeJavascript("TbgTimer.endBody = new Date();");
     //}
+
+    writer.writeJavascript("setTimeout(\"Tobago.init('" + clientId + "')\", 1000)");
+
     writer.endElement(HtmlConstants.BODY);
     writer.endElement(HtmlConstants.HTML);
 

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js?rev=686703&r1=686702&r2=686703&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js (original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/standard/src/main/resources/org/apache/myfaces/tobago/renderkit/html/standard/standard/script/tobago.js Mon Aug 18 02:03:53 2008
@@ -228,6 +228,8 @@
     */
   openPopups: new Array(),
 
+  initMarker: false,
+
   // -------- Functions -------------------------------------------------------
 
 
@@ -236,6 +238,12 @@
    * Called via onload attribute of body tag
    */
   init: function(pageId) {
+
+    if (this.initMarker) {
+      return;
+    }
+    this.initMarker = true;
+
 //    new LOG.LogArea({hide: false});
 //    LOG.show();
     TbgTimer.startOnload = new Date();