From 28c72dc94093ed368cd39f0a4507433181a602e7 Mon Sep 17 00:00:00 2001 From: jdlrobson Date: Fri, 30 Jun 2017 14:22:56 -0700 Subject: [PATCH] Allow search suggestions in skins operating in mobile mode MobileFrontend silently removes this skin from the page. This is now made explicit and the module can be safely loaded in a mobile environment. This is used by both Timeless which although does not work perfectly on a mobile device it should be easy to fix with additional work. Change-Id: Iedea2872d14430db452cec7e758f20d854778414 Depends-On: Ic36e9792f9217f3fd37bbd1f5c66d894301363f0 --- resources/Resources.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/Resources.php b/resources/Resources.php index dc0538725a..317181f490 100644 --- a/resources/Resources.php +++ b/resources/Resources.php @@ -238,6 +238,7 @@ return [ 'scripts' => 'resources/lib/jquery/jquery.fullscreen.js', ], 'jquery.getAttrs' => [ + 'targets' => [ 'desktop', 'mobile' ], 'scripts' => 'resources/src/jquery/jquery.getAttrs.js', 'targets' => [ 'desktop', 'mobile' ], ], @@ -325,6 +326,7 @@ return [ 'scripts' => 'resources/lib/jquery/jquery.jStorage.js', ], 'jquery.suggestions' => [ + 'targets' => [ 'desktop', 'mobile' ], 'scripts' => 'resources/src/jquery/jquery.suggestions.js', 'styles' => 'resources/src/jquery/jquery.suggestions.css', 'dependencies' => 'jquery.highlightText', @@ -1182,6 +1184,7 @@ return [ 'styles' => 'resources/src/mediawiki/mediawiki.pager.tablePager.less', ], 'mediawiki.searchSuggest' => [ + 'targets' => [ 'desktop', 'mobile' ], 'scripts' => 'resources/src/mediawiki/mediawiki.searchSuggest.js', 'styles' => 'resources/src/mediawiki/mediawiki.searchSuggest.css', 'messages' => [ -- 2.20.1