mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-12-20 19:52:48 +00:00
98bee1c71f
Add hook that renders when search displays for first time to allow experimentation. Code can call ``` mw.hook( 'search.display' ).add((node)=> { node.innerHTML = 'hello world' } ); Bug: T371294 Change-Id: Ib3ec73b8ed66877c11e0d8d290a6b564a013702b
36 lines
707 B
Plaintext
36 lines
707 B
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`App renders a typeahead search component 1`] = `
|
|
<cdx-typeahead-search
|
|
accesskey="f"
|
|
aria-label="Search MediaWiki"
|
|
auto-expand-width="false"
|
|
button-label="searchbutton"
|
|
class="vector-typeahead-search"
|
|
form-action=""
|
|
highlight-query="true"
|
|
id="searchform"
|
|
initial-input-value=""
|
|
placeholder="Search MediaWiki"
|
|
search-footer-url=""
|
|
search-results=""
|
|
search-results-label="searchresults"
|
|
show-thumbnail="true"
|
|
title="search"
|
|
>
|
|
<div>
|
|
empty
|
|
</div>
|
|
<input
|
|
name="title"
|
|
type="hidden"
|
|
value="Special:Search"
|
|
/>
|
|
<input
|
|
name="wprov"
|
|
type="hidden"
|
|
value="acrw1_-1"
|
|
/>
|
|
</cdx-typeahead-search>
|
|
`;
|