mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-11 16:59:09 +00:00
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:
parent
eb124e850b
commit
f37ff19f25
|
@ -13,7 +13,7 @@
|
|||
},
|
||||
{
|
||||
"resourceModule": "skins.vector.search",
|
||||
"maxSize": "3 kB"
|
||||
"maxSize": "3.1 kB"
|
||||
},
|
||||
{
|
||||
"resourceModule": "skins.vector.icons",
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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' ),
|
||||
|
|
Loading…
Reference in a new issue