jenkins-bot has submitted this change and it was merged.

Change subject: Enable search/title suggestions for Preview page with this 
template
......................................................................


Enable search/title suggestions for Preview page with this template

This should help finding the correct page title without trying around
or knowing the exact page title.

Bug: T148324
Change-Id: I709ef20f175e17e1c29a67394c14376a534c16ff
---
M TemplateSandbox.hooks.php
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Anomie: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/TemplateSandbox.hooks.php b/TemplateSandbox.hooks.php
index e633261..ac6c3c4 100644
--- a/TemplateSandbox.hooks.php
+++ b/TemplateSandbox.hooks.php
@@ -227,6 +227,10 @@
                        'tabindex' => ++$tabindex,
                        'size' => 60,
                        'spellcheck' => 'true',
+                       'class' => 'mw-searchInput',
+                       'data-mw-searchsuggest' => FormatJson::encode( [
+                               'wrapAsLink' => false,
+                       ] ),
                ];
 
                // EditPage::getContext() is available since 1.28+

-- 
To view, visit https://gerrit.wikimedia.org/r/316224
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I709ef20f175e17e1c29a67394c14376a534c16ff
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/TemplateSandbox
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com>
Gerrit-Reviewer: Anomie <bjor...@wikimedia.org>
Gerrit-Reviewer: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com>
Gerrit-Reviewer: Jackmcbarn <jackmcb...@gmail.com>
Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to