Index: trunk/extensions/MobileFrontend/javascripts/beta_opensearch.js |
— | — | @@ -67,9 +67,6 @@ |
68 | 68 | if ( focused ) { |
69 | 69 | focused = false; |
70 | 70 | } |
71 | | - if ( clearSearch ) { |
72 | | - clearSearch.style.display = 'none'; |
73 | | - } |
74 | 71 | } |
75 | 72 | |
76 | 73 | function whichElement( e ) { |
— | — | @@ -204,19 +201,9 @@ |
205 | 202 | function initClearSearch() { |
206 | 203 | var clearSearch = document.getElementById( 'clearsearch' ), |
207 | 204 | search = document.getElementById( 'search' ); |
208 | | - function handleClearSearchLink() { |
209 | | - if ( clearSearch ) { |
210 | | - if ( search.value.length > 0 ) { |
211 | | - clearSearch.style.display = 'block'; |
212 | | - } else { |
213 | | - clearSearch.style.display = 'none'; |
214 | | - } |
215 | | - } |
216 | | - } |
217 | 205 | |
218 | 206 | function clearSearchBox( event ) { |
219 | 207 | search.value = ''; |
220 | | - clearSearch.style.display = 'none'; |
221 | 208 | event.preventDefault(); |
222 | 209 | } |
223 | 210 | |
— | — | @@ -224,7 +211,6 @@ |
225 | 212 | search.select(); |
226 | 213 | } |
227 | 214 | u( clearSearch ).bind( 'mousedown', clearSearchBox ); |
228 | | - u( search ).bind( 'keyup', handleClearSearchLink ); |
229 | 215 | u( search ).bind( 'click', onFocusHandler ); |
230 | 216 | } |
231 | 217 | |