Index: trunk/extensions/MobileFrontend/javascripts/beta_application.js |
— | — | @@ -121,7 +121,10 @@ |
122 | 122 | s.display = s.display == 'none' || ( i && !s.display ) ? 'inline-block' : 'none'; |
123 | 123 | } |
124 | 124 | for ( var i = 0, d = ['content_','anchor_']; i<=1; i++ ) { |
125 | | - var s = document.getElementById( d[i] + section_id ).style; |
126 | | - s.display = s.display == 'block' ? 'none' : 'block'; |
| 125 | + var e = document.getElementById( d[i] + section_id ); |
| 126 | + |
| 127 | + if ( e ) { |
| 128 | + e.style.display = e.style.display == 'block' ? 'none' : 'block'; |
| 129 | + } |
127 | 130 | } |
128 | 131 | } |
\ No newline at end of file |