Allow search suggestions in skins operating in mobile mode
authorjdlrobson <jdlrobson@gmail.com>
Fri, 30 Jun 2017 21:22:56 +0000 (14:22 -0700)
committerKrinkle <krinklemail@gmail.com>
Fri, 30 Jun 2017 21:50:54 +0000 (21:50 +0000)
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

index dc05387..317181f 100644 (file)
@@ -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' => [