Index: trunk/extensions/MobileFrontend/javascripts/beta_application.js |
— | — | @@ -82,30 +82,9 @@ |
83 | 83 | wm_reveal_for_hash( document.location.hash ); |
84 | 84 | } |
85 | 85 | |
86 | | -updateOrientation(); |
87 | | - |
88 | 86 | // Try to scroll and hide URL bar |
89 | 87 | window.scrollTo( 0, 1 ); |
90 | 88 | |
91 | | -/** |
92 | | - * updateOrientation checks the current orientation, sets the body's class |
93 | | - * attribute to portrait, landscapeLeft, or landscapeRight, |
94 | | - * and displays a descriptive message on "Handling iPhone or iPod touch Orientation Events". |
95 | | - */ |
96 | | -function updateOrientation() { |
97 | | - switch( window.orientation ) { |
98 | | - case 0: |
99 | | - document.body.setAttribute( 'class', 'portrait' ); |
100 | | - break; |
101 | | - case 90: |
102 | | - case -90: |
103 | | - document.body.setAttribute( 'class', 'landscape' ); |
104 | | - } |
105 | | -} |
106 | | - |
107 | | -// Point to the updateOrientation function when iPhone switches between portrait and landscape modes. |
108 | | -window.onorientationchange = updateOrientation; |
109 | | - |
110 | 89 | function wm_reveal_for_hash( hash ) { |
111 | 90 | var targetel = document.getElementById( hash.substr(1) ); |
112 | 91 | if ( targetel ) { |