Bmansurov has uploaded a new change for review. https://gerrit.wikimedia.org/r/223438
Change subject: Hide the search from in alpha when JS is disabled ...................................................................... Hide the search from in alpha when JS is disabled In alpha the search form is at the top of the main menu drawer. Thus hide the search form at the top of article pages. Bug: T105066 Change-Id: I551f06ea913f3703c84f73fb4422e6a06236e53e --- M includes/skins/MinervaTemplateAlpha.php M includes/skins/searchForm.mustache 2 files changed, 3 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend refs/changes/38/223438/1 diff --git a/includes/skins/MinervaTemplateAlpha.php b/includes/skins/MinervaTemplateAlpha.php index 76368e6..fab5f78 100644 --- a/includes/skins/MinervaTemplateAlpha.php +++ b/includes/skins/MinervaTemplateAlpha.php @@ -103,7 +103,8 @@ protected function getMainMenuHtml( $data ) { $templateParser = new TemplateParser( __DIR__ ); $args = array( - 'searchForm' => $this->getSearchForm( $data ) + 'searchForm' => $this->getSearchForm( $data ), + 'additionalClasses' => 'jsonly' ); return $templateParser->processTemplate( 'searchForm', $args ) . parent::getMainMenuHtml( $data ); diff --git a/includes/skins/searchForm.mustache b/includes/skins/searchForm.mustache index ecc4ef7..cea1cf8 100644 --- a/includes/skins/searchForm.mustache +++ b/includes/skins/searchForm.mustache @@ -1,3 +1,3 @@ -<div class="header"> +<div class="header {{additionalClasses}}"> {{{searchForm}}} </div> -- To view, visit https://gerrit.wikimedia.org/r/223438 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I551f06ea913f3703c84f73fb4422e6a06236e53e Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/MobileFrontend Gerrit-Branch: master Gerrit-Owner: Bmansurov <bmansu...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits