cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject svn commit: rev 54523 - cocoon/trunk/src/blocks/forms/samples/resources
Date Mon, 11 Oct 2004 09:34:37 GMT
Author: bruno
Date: Mon Oct 11 02:34:36 2004
New Revision: 54523

Modified:
   cocoon/trunk/src/blocks/forms/samples/resources/forms-lib.js
Log:
Applying patch 31527 (Test OnTabShownHandlers in form-libs.js fails if none
set for tabgroup) provided by Rob Berens.


Modified: cocoon/trunk/src/blocks/forms/samples/resources/forms-lib.js
==============================================================================
--- cocoon/trunk/src/blocks/forms/samples/resources/forms-lib.js	(original)
+++ cocoon/trunk/src/blocks/forms/samples/resources/forms-lib.js	Mon Oct 11 02:34:36 2004
@@ -182,7 +182,9 @@
         if (tabitems != null) {
             tabitems.style.display = (i == idx) ? '' : 'none';
             // execute event handler if any
-            if (i == idx && window.onTabShownHandlers != null) {
+            if (i == idx &&
+                    window.onTabShownHandlers != null &&
+                    window.onTabShownHandlers[tabgroup] != null) {
                 var onShowHandler = window.onTabShownHandlers[tabgroup][tabgroup + "_items_"
+ i];
                 if (onShowHandler != null) {
                     eval(onShowHandler);
@@ -190,4 +192,4 @@
             }
         }
     }
-}
\ No newline at end of file
+}

Mime
View raw message