You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by gm...@apache.org on 2007/09/07 10:02:39 UTC

svn commit: r573495 - /myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js

Author: gmuellan
Date: Fri Sep  7 01:02:38 2007
New Revision: 573495

URL: http://svn.apache.org/viewvc?rev=573495&view=rev
Log:
blocking of periodical update should also occur after leaving the timeout; this is needed for short time intervalls which may be aborted before rendering the traditional response

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js?rev=573495&r1=573494&r2=573495&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/resources/org/apache/myfaces/custom/ppr/resource/ppr.js Fri Sep  7 01:02:38 2007
@@ -165,9 +165,12 @@
 
 org.apache.myfaces.PPRCtrl.prototype.doPeriodicalUpdate = function(refreshTimeout, refreshZoneId)
 {
-    var content = new Array;
-    content["org.apache.myfaces.PPRCtrl.triggeredComponents"] = refreshZoneId;
-    this.doAjaxSubmit(content, refreshTimeout, refreshZoneId, null);
+    if(!this.blockPeriodicalUpdateDuringPost) 
+    {
+       var content = new Array;
+       content["org.apache.myfaces.PPRCtrl.triggeredComponents"] = refreshZoneId;
+       this.doAjaxSubmit(content, refreshTimeout, refreshZoneId, null);
+    }
 };
 
 //Callback Method which handles the AJAX Response