[Rt-commit] r3614 - in rt/branches/3.5-TESTING: . html/NoAuth/js

trs at bestpractical.com trs at bestpractical.com
Sat Aug 6 18:53:01 EDT 2005


Author: trs
Date: Sat Aug  6 18:53:00 2005
New Revision: 3614

Modified:
   rt/branches/3.5-TESTING/   (props changed)
   rt/branches/3.5-TESTING/html/NoAuth/js/titlebox-state.js
Log:
 r5704 at wintermute:  tom | 2005-08-06 18:51:05 -0400
 When I made a change to the JS a while back I broke the titlebox statefulness.  Now it's fixed.


Modified: rt/branches/3.5-TESTING/html/NoAuth/js/titlebox-state.js
==============================================================================
--- rt/branches/3.5-TESTING/html/NoAuth/js/titlebox-state.js	(original)
+++ rt/branches/3.5-TESTING/html/NoAuth/js/titlebox-state.js	Sat Aug  6 18:53:00 2005
@@ -21,13 +21,15 @@
         
         if (c[0].match(/^TitleBox--/)) {
             var e   = document.getElementById(c[0]);
-            var e2  = e.parentNode;
-
-            if (c[1] != 0) {
-                set_rollup_state(e,e2,'shown');
-            }
-            else {
-                set_rollup_state(e,e2,'hidden');
+            if (e) {
+                var e2  = e.parentNode;
+    
+                if (c[1] != 0) {
+                    set_rollup_state(e,e2,'shown');
+                }
+                else {
+                    set_rollup_state(e,e2,'hidden');
+                }
             }
         }
     }


More information about the Rt-commit mailing list