Index: trunk/extensions/MobileFrontend/tests/js/fixtures.js |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | ' </div>', |
20 | 20 | ' <div id="zero-rated-banner">', |
21 | 21 | ' banner', |
22 | | - ' <button id="dismiss-notification">dismiss banner</button>', |
| 22 | + ' <a href="#" id="dismiss-notification">dismiss banner</button>', |
23 | 23 | ' </div>', |
24 | 24 | ' <input type="text" id="search">', |
25 | 25 | ' <button id="clearsearch">clear</button>', |
Index: trunk/extensions/MobileFrontend/javascripts/beta_application.js |
— | — | @@ -105,11 +105,11 @@ |
106 | 106 | } |
107 | 107 | |
108 | 108 | for ( var a = document.getElementsByTagName( 'a' ), i = 0; i < a.length; i++ ) { |
109 | | - a[i].onclick = function() { |
| 109 | + a[i].addEventListener( 'click', function() { |
110 | 110 | if ( this.hash.indexOf( '#' ) == 0 ) { |
111 | 111 | wm_reveal_for_hash( this.hash ); |
112 | 112 | } |
113 | | - } |
| 113 | + }); |
114 | 114 | } |
115 | 115 | |
116 | 116 | // Try to scroll and hide URL bar |
Index: trunk/extensions/MobileFrontend/javascripts/application.js |
— | — | @@ -94,11 +94,11 @@ |
95 | 95 | } |
96 | 96 | |
97 | 97 | for ( var a = document.getElementsByTagName( 'a' ), i = 0; i < a.length; i++ ) { |
98 | | - a[i].onclick = function() { |
| 98 | + a[i].addEventListener( 'click', function() { |
99 | 99 | if ( this.hash.indexOf( '#' ) == 0 ) { |
100 | 100 | wm_reveal_for_hash( this.hash ); |
101 | 101 | } |
102 | | - } |
| 102 | + }); |
103 | 103 | } |
104 | 104 | |
105 | 105 | // Try to scroll and hide URL bar |