r105967 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105966‎ | r105967 | r105968 >
Date:01:51, 13 December 2011
Author:preilly
Status:ok
Tags:
Comment:
fix for CR comments
Modified paths:
  • /trunk/extensions/MobileFrontend/javascripts/opensearch.js (modified) (history)

Diff [purge]

Index: trunk/extensions/MobileFrontend/javascripts/opensearch.js
@@ -81,7 +81,7 @@
8282 case -90:
8383 case 90:
8484 case 180:
85 - setTimeout( "updateSearchWidth()", 200 );
 85+ setTimeout( updateSearchWidth, 200 );
8686 break;
8787 }
8888 }
@@ -97,7 +97,6 @@
9898 if ( term.length < 1 ) {
9999 results.innerHTML = '';
100100 } else {
101 - term = encodeURIComponent( term );
102101 timer = setTimeout( function () { searchApi( term ); }, typingDelay );
103102 }
104103 }, false );
@@ -117,6 +116,7 @@
118117 writeResults( sections );
119118 }
120119 }
 120+ term = encodeURIComponent( term );
121121 var url = apiUrl + '?action=opensearch&limit=' + numResults + '&namespace=0&format=xml&search=' + term;
122122 xmlHttp.open( 'GET', url, true );
123123 xmlHttp.send();

Sign-offs

UserFlagDate
Nikerabbitinspected05:49, 13 December 2011

Status & tagging log