Index: trunk/extensions/MobileFrontend/javascripts/opensearch.js |
— | — | @@ -81,7 +81,7 @@ |
82 | 82 | case -90: |
83 | 83 | case 90: |
84 | 84 | case 180: |
85 | | - setTimeout( "updateSearchWidth()", 200 ); |
| 85 | + setTimeout( updateSearchWidth, 200 ); |
86 | 86 | break; |
87 | 87 | } |
88 | 88 | } |
— | — | @@ -97,7 +97,6 @@ |
98 | 98 | if ( term.length < 1 ) { |
99 | 99 | results.innerHTML = ''; |
100 | 100 | } else { |
101 | | - term = encodeURIComponent( term ); |
102 | 101 | timer = setTimeout( function () { searchApi( term ); }, typingDelay ); |
103 | 102 | } |
104 | 103 | }, false ); |
— | — | @@ -117,6 +116,7 @@ |
118 | 117 | writeResults( sections ); |
119 | 118 | } |
120 | 119 | } |
| 120 | + term = encodeURIComponent( term ); |
121 | 121 | var url = apiUrl + '?action=opensearch&limit=' + numResults + '&namespace=0&format=xml&search=' + term; |
122 | 122 | xmlHttp.open( 'GET', url, true ); |
123 | 123 | xmlHttp.send(); |