User "Catrope" posted a comment on MediaWiki.r91728. Full URL: https://secure.wikimedia.org/wikipedia/mediawiki/wiki/Special:Code/MediaWiki/91728#c19648 Commit summary:
Rewrite mwsuggest.js using j.ui.autocomplete. This gets rid of a lot of the little kinks of the previously implemenation: The suggestion list now contains regular anchors which can be openened in new indows or separate tabs. The carret doesn't jump around anymore when using the arrow keys to select an item. This should make it much easier to eventually merge Vectors simple search & mwsuggest. Comment: Additionally, you can use <code>$.getJSON( url, vars, function() { ... } );</code> where <code>url = mw.util.wikiScript( 'api' ), vars = { format: 'json', action: 'opensearch', search: foo, namespaces: bar }</code> so you don't have to build the query string and escape things yourself. _______________________________________________ MediaWiki-CodeReview mailing list mediawiki-coderev...@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview