Jdlrobson has submitted this change and it was merged.

Change subject: Bug 43845: Close main menu after tapping the content
......................................................................


Bug 43845: Close main menu after tapping the content

Bug: 43845
Change-Id: Ie511d566046e661fb3bddfb4aa7c5bdacbd28c97
---
M javascripts/common/mf-navigation.js
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  Jdlrobson: Verified; Looks good to me, approved



diff --git a/javascripts/common/mf-navigation.js 
b/javascripts/common/mf-navigation.js
index 2373cde..020afd3 100644
--- a/javascripts/common/mf-navigation.js
+++ b/javascripts/common/mf-navigation.js
@@ -124,6 +124,9 @@
                        ev.stopPropagation();
                } );
 
+               // close navigation if content tapped
+               $( '#mw-mf-page-center' ).on( 'touchend', closeNavigation );
+
                if( window.location.hash === '#mw-mf-page-left' ) {
                        openNavigation();
                        u( document.body ).addClass( 'noTransitions' );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie511d566046e661fb3bddfb4aa7c5bdacbd28c97
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: JGonera <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to