Index: trunk/extensions/MobileFrontend/javascripts/beta_opensearch.js |
— | — | @@ -107,14 +107,14 @@ |
108 | 108 | |
109 | 109 | var performSearch = function(ev) { |
110 | 110 | ev.preventDefault(); |
111 | | - clearTimeout( timer ); |
112 | | - term = search.value; |
113 | | - if ( term.length < 1 ) { |
114 | | - results.innerHTML = ''; |
115 | | - } else { |
116 | | - term = encodeURIComponent( term ); |
117 | | - timer = setTimeout( function () { searchApi( term ); }, typingDelay ); |
118 | | - } |
| 111 | + clearTimeout( timer ); |
| 112 | + term = search.value; |
| 113 | + if ( term.length < 1 ) { |
| 114 | + results.innerHTML = ''; |
| 115 | + } else { |
| 116 | + term = encodeURIComponent( term ); |
| 117 | + timer = setTimeout( function () { searchApi( term ); }, typingDelay ); |
| 118 | + } |
119 | 119 | }; |
120 | 120 | u( search ).bind( 'keyup', performSearch ); |
121 | 121 | u( document.getElementById( 'searchForm' ) ).bind( 'submit', performSearch ); |