Index: trunk/extensions/MobileFrontend/javascripts/beta_opensearch.js |
— | — | @@ -149,15 +149,6 @@ |
150 | 150 | return sections; |
151 | 151 | } |
152 | 152 | |
153 | | - function sqValUpdate( sqValue ) { |
154 | | - var search = document.getElementById( 'search' ); |
155 | | - if ( search ) { |
156 | | - search.value = sqValue + ' '; |
157 | | - search.focus(); |
158 | | - searchApi( search.value ); |
159 | | - } |
160 | | - } |
161 | | - |
162 | 153 | function htmlEntities( str ) { |
163 | 154 | var text = document.createTextNode( str ), |
164 | 155 | el = document.createElement( 'div' ); |
— | — | @@ -172,7 +163,7 @@ |
173 | 164 | function writeResults( sections ) { |
174 | 165 | var results = document.getElementById( 'results' ), suggestions, i, |
175 | 166 | term = htmlEntities( document.getElementById( 'search' ).value ), |
176 | | - suggestionListener, section, escapedTerm, suggestionsResult, link, label; |
| 167 | + section, escapedTerm, suggestionsResult, link, label; |
177 | 168 | |
178 | 169 | results.style.display = 'block'; |
179 | 170 | if ( search ) { |
— | — | @@ -187,22 +178,12 @@ |
188 | 179 | suggestions = document.createElement( 'ul' ); |
189 | 180 | suggestions.className = 'suggestions-results'; |
190 | 181 | results.appendChild( suggestions ); |
191 | | - suggestionListener = function() { |
192 | | - var title = this.parentNode.getAttribute( 'title' ); |
193 | | - sqValUpdate( title ); |
194 | | - }; |
195 | 182 | |
196 | 183 | for ( i = 0; i < sections.length; i++ ) { |
197 | 184 | section = sections[i]; |
198 | 185 | suggestionsResult = document.createElement( 'li' ); |
199 | | - link = document.createElement( 'a' ); |
200 | 186 | suggestionsResult.setAttribute( 'title', section.label ); |
201 | 187 | suggestionsResult.className = 'suggestions-result'; |
202 | | - label = document.createTextNode( '+' ); |
203 | | - link.appendChild(label); |
204 | | - link.className = 'sq-val-update'; |
205 | | - u( link ).bind( 'click', suggestionListener ); |
206 | | - suggestionsResult.appendChild( link ); |
207 | 188 | |
208 | 189 | link = document.createElement( 'a' ); |
209 | 190 | link.setAttribute( 'href', section.value.replace( /^(?:\/\/|[^\/]+)*\//, '/' ) ); |
Index: trunk/extensions/MobileFrontend/stylesheets/beta_common.css |
— | — | @@ -129,30 +129,6 @@ |
130 | 130 | background-color: #ACD1E9; |
131 | 131 | } |
132 | 132 | |
133 | | -a.sq-val-update { |
134 | | - font-size: 1.3em; |
135 | | - display: block; |
136 | | - font-weight: normal; |
137 | | - text-decoration: none; |
138 | | - color: #666; |
139 | | - position: absolute; |
140 | | - right: 0; |
141 | | - width: 1.5em; |
142 | | - text-align: center; |
143 | | -} |
144 | | - |
145 | | -a.sq-val-update:visited { |
146 | | - text-decoration: none; |
147 | | -} |
148 | | - |
149 | | -a.sq-val-update:hover { |
150 | | - text-decoration: none; |
151 | | -} |
152 | | - |
153 | | -a.sq-val-update:active { |
154 | | - text-decoration: none; |
155 | | -} |
156 | | - |
157 | 133 | a.search-result-item { |
158 | 134 | display: block; |
159 | 135 | margin-right: 2em; |