(bug 41292) Fix "containing..." search option
authorKevin Israel <pleasestand@live.com>
Tue, 23 Oct 2012 03:30:24 +0000 (23:30 -0400)
committerKevin Israel <pleasestand@live.com>
Tue, 23 Oct 2012 04:15:49 +0000 (00:15 -0400)
commit2d55873310f4d9cefc6aabb694ba898adc4f55a7
tree8c9f03a3b2be6b4bb46d4e006e53a494a5b99ed1
parent7fe78d7e743d81c305b19a41237a82dea7e17dab
(bug 41292) Fix "containing..." search option

Line 132 of jquery.js checks '<input type="hidden"/>' against
rsingleTag. The 'type="hidden"' part causes the HTML to no longer match
the regex, so jQuery fails to add the braced attributes. The "val: '1'"
part was likely wrong anyway; the correct attribute name is "value".

The bug causes the absence of the fulltext=1 query string argument,
which leaves the title near-match logic enabled even when the user
tries to override it. This commit fixes the problem by just putting all
the attributes inside the HTML string.

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