Jdlrobson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/148464

Change subject: Enable JavaScript on mobile
......................................................................

Enable JavaScript on mobile

Tested on Android and iPhone, seems relatively functional

Change-Id: I18532d7d44c2570ba09bb51552d87b21b2d1f1c8
---
M Resources.php
1 file changed, 7 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow 
refs/changes/64/148464/1

diff --git a/Resources.php b/Resources.php
index 03d7e77..89d09e4 100644
--- a/Resources.php
+++ b/Resources.php
@@ -284,12 +284,12 @@
                'dependencies' => array(
                        'ext.mantle.handlebars',
                ),
-       ),
+       ) + $mobile,
        'ext.flow.new.history' => $flowResourceTemplate + array(
                'scripts' => array(
                        'new/flow-history.js',
                ),
-       ),
+       ) + $mobile,
        'ext.flow.new' => $flowResourceTemplate + array(
                'scripts' => array(
                        'new/mw-ui.enhance.js',
@@ -313,23 +313,23 @@
                'messages' => array(
                        'flow-error-http',
                )
-       ),
+       ) + $mobile,
        'ext.flow.vendor.storer' => $flowResourceTemplate + array(
                'scripts' => array(
                        'new/vendor/Storer.js',
                ),
-       ),
+       ) + $mobile,
        'ext.flow.vendor.jquery.ba-throttle-debounce' => $flowResourceTemplate 
+ array(
                'scripts' => array(
                        'new/vendor/jquery.ba-throttle-debounce.js',
                ),
-       ),
+       ) + $mobile,
 );
 
-$wgHooks['ResourceLoaderRegisterModules'][] = function( $resourceLoader ) use 
( $flowResourceTemplate ) {
+$wgHooks['ResourceLoaderRegisterModules'][] = function( $resourceLoader ) use 
( $flowResourceTemplate, $mobile ) {
        if ( $resourceLoader->getModule( 'jquery.conditionalScroll' ) === null 
) {
                $resourceLoader->register( 'jquery.conditionalScroll', 
$flowResourceTemplate + array(
                        'scripts' => 'jquery.conditionalScroll.js',
-               ) );
+               )  + $mobile );
        }
 };

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I18532d7d44c2570ba09bb51552d87b21b2d1f1c8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Flow
Gerrit-Branch: master
Gerrit-Owner: Jdlrobson <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to