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