From: jdlrobson Date: Fri, 30 Jun 2017 21:22:56 +0000 (-0700) Subject: Allow search suggestions in skins operating in mobile mode X-Git-Tag: 1.31.0-rc.0~2818^2 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=28c72dc94093ed368cd39f0a4507433181a602e7;p=lhc%2Fweb%2Fwiklou.git 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 --- 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' => [