Merge "[refactor] Drop form-id template property"

This commit is contained in:
jenkins-bot 2020-06-26 11:50:32 +00:00 committed by Gerrit Code Review
commit 9aee83fbb8
4 changed files with 1 additions and 4 deletions

View File

@ -500,7 +500,6 @@ class VectorTemplate extends BaseTemplate {
$config = $this->getConfig();
$props = [
'form-action' => $config->get( 'Script' ),
'form-id' => 'simpleSearch',
'html-button-search-fallback' => $this->makeSearchButton(
'fulltext',
[ 'id' => 'mw-searchButton', 'class' => 'searchButton mw-fallbackSearchButton' ]

View File

@ -6,7 +6,7 @@
<label for="searchInput">{{msg-search}}</label>
</h3>
<form action="{{form-action}}" id="searchform">
<div id="{{form-id}}">
<div id="simpleSearch">
{{{html-input}}}
<input type="hidden" name="title" value="{{page-title}}">
{{! We construct two buttons (for 'go' and 'fulltext' search modes), but only one will be

View File

@ -10,7 +10,6 @@ export const searchBoxData = {
'form-action': '/w/index.php',
'html-userlangattributes': htmluserlangattributes,
'msg-search': 'Search',
'form-id': 'simpleSearch',
'html-input': '<input type="search" name="search" placeholder="Search Wikipedia" title="Search Wikipedia [⌃⌥f]" accesskey="f" id="searchInput" autocomplete="off">',
'page-title': 'Special:Search',
'html-button-search-fallback': '<input type="submit" name="fulltext" value="Search" title="Search pages for this text" id="mw-searchButton" class="searchButton mw-fallbackSearchButton"/>',

View File

@ -42,7 +42,6 @@
* @prop {string|null} msg-search
* @prop {string} [html-userlangattributes]
* @prop {string} form-action URL
* @prop {string} form-id
* @prop {string|null} html-input
* @prop {string|null} page-title the title of the search page
* @prop {string|null} html-button-search-fallback