[seam-commits] Seam SVN: r10348 - in trunk/examples/wiki/view/themes: inrelationto and 1 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Apr 8 04:06:08 EDT 2009


Author: christian.bauer at jboss.com
Date: 2009-04-08 04:06:08 -0400 (Wed, 08 Apr 2009)
New Revision: 10348

Modified:
   trunk/examples/wiki/view/themes/default/template.xhtml
   trunk/examples/wiki/view/themes/inrelationto/template.xhtml
   trunk/examples/wiki/view/themes/sfwkorg/template.xhtml
Log:
Client-side session timeout check reset only if it was running before AJAX request

Modified: trunk/examples/wiki/view/themes/default/template.xhtml
===================================================================
--- trunk/examples/wiki/view/themes/default/template.xhtml	2009-04-08 04:38:52 UTC (rev 10347)
+++ trunk/examples/wiki/view/themes/default/template.xhtml	2009-04-08 08:06:08 UTC (rev 10348)
@@ -1,3 +1,4 @@
+
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
@@ -50,8 +51,10 @@
         }
 
         function resetSessionTimeoutCheck() {
-            stopSessionTimeoutCheck();
-            startSessionTimeoutCheck();
+            if (sessionTimeoutInterval != null) {
+                stopSessionTimeoutCheck();
+                startSessionTimeoutCheck();
+            }
         }
 
         function alertTimeout(newSession) {

Modified: trunk/examples/wiki/view/themes/inrelationto/template.xhtml
===================================================================
--- trunk/examples/wiki/view/themes/inrelationto/template.xhtml	2009-04-08 04:38:52 UTC (rev 10347)
+++ trunk/examples/wiki/view/themes/inrelationto/template.xhtml	2009-04-08 08:06:08 UTC (rev 10348)
@@ -41,8 +41,10 @@
         }
 
         function resetSessionTimeoutCheck() {
-            stopSessionTimeoutCheck();
-            startSessionTimeoutCheck();
+            if (sessionTimeoutInterval != null) {
+                stopSessionTimeoutCheck();
+                startSessionTimeoutCheck();
+            }
         }
 
         function alertTimeout(newSession) {

Modified: trunk/examples/wiki/view/themes/sfwkorg/template.xhtml
===================================================================
--- trunk/examples/wiki/view/themes/sfwkorg/template.xhtml	2009-04-08 04:38:52 UTC (rev 10347)
+++ trunk/examples/wiki/view/themes/sfwkorg/template.xhtml	2009-04-08 08:06:08 UTC (rev 10348)
@@ -42,8 +42,10 @@
         }
 
         function resetSessionTimeoutCheck() {
-            stopSessionTimeoutCheck();
-            startSessionTimeoutCheck();
+            if (sessionTimeoutInterval != null) {
+                stopSessionTimeoutCheck();
+                startSessionTimeoutCheck();
+            }
         }
 
         function alertTimeout(newSession) {




More information about the seam-commits mailing list