Codex search should respect autocapitalize value from $wgCapitalLinks

When $wgCapitalLinks = true, use sentences
When $wgCapitalLinks = false, use none

Bug: T251664
Change-Id: Ide4f48641619a4af94c40129ac28f63cb4bb30f9
This commit is contained in:
Jon Robson 2022-10-26 13:22:06 -07:00 committed by Jdlrobson
parent eb124e850b
commit f37ff19f25
3 changed files with 6 additions and 1 deletions

View file

@ -13,7 +13,7 @@
},
{
"resourceModule": "skins.vector.search",
"maxSize": "3 kB"
"maxSize": "3.1 kB"
},
{
"resourceModule": "skins.vector.icons",

View file

@ -6,6 +6,7 @@
:class="rootClasses"
:search-results-label="$i18n( 'searchresults' ).text()"
:accesskey="searchAccessKey"
:autocapitalize="autocapitalizeValue"
:title="searchTitle"
:placeholder="searchPlaceholder"
:aria-label="searchPlaceholder"
@ -66,6 +67,9 @@ module.exports = exports = defineComponent( {
type: String,
required: true
},
autocapitalizeValue: {
type: String
},
searchPageTitle: {
type: String,
default: 'Special:Search'

View file

@ -25,6 +25,7 @@ function initApp( searchBox ) {
Vue.createMwApp(
App, $.extend( {
id: searchForm.id,
autocapitalizeValue: search.getAttribute( 'autocapitalize' ),
autofocusInput: search === document.activeElement,
action: searchForm.getAttribute( 'action' ),
searchAccessKey: search.getAttribute( 'accessKey' ),