(bug 41349) mediawiki.searchSuggest: Reorder code + fix selectors
authorMatmaRex <matma.rex@gmail.com>
Wed, 24 Oct 2012 15:51:59 +0000 (17:51 +0200)
committerTimo Tijhof <ttijhof@wikimedia.org>
Wed, 24 Oct 2012 18:23:00 +0000 (20:23 +0200)
commit97e51ed1e76219a2574247ca510a99f9828e238d
tree7b42b68f1c31a8c6558e287fd0300735e99e42a6
parentefc27d12b839cb4257d2411c02c4b416877d1caa
(bug 41349) mediawiki.searchSuggest: Reorder code + fix selectors

The code for general suggestions wouldn't run at all if no primary
search box was found. I moved this check down, to where the box is
actually needed.

The selectors were hardcoded with no explanation. Added comments,
added selector .mw-searchInput (as a generic one to be used by
skins with multiple search boxes, currently only CologneBlue).

Change-Id: Ie22fb66926688b0fdb28a121cfa0fb61ead0246d
resources/mediawiki/mediawiki.searchSuggest.js