From a0e74c4a4bbf89f3d014472cb31b28c8cb2b56ec Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Tue, 3 Apr 2012 07:08:59 +0530 Subject: [PATCH] Added MFE as a Submodule --- .gitmodules | 3 +++ assets/www/MobileFrontend | 1 + assets/www/index.html | 6 +++--- assets/www/js/chrome.js | 4 ++-- 4 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 .gitmodules create mode 160000 assets/www/MobileFrontend diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..cb30bb70 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "assets/www/MobileFrontend"] + path = assets/www/MobileFrontend + url = https://gerrit.wikimedia.org/r/p/mediawiki/extensions/MobileFrontend.git diff --git a/assets/www/MobileFrontend b/assets/www/MobileFrontend new file mode 160000 index 00000000..59ebeccd --- /dev/null +++ b/assets/www/MobileFrontend @@ -0,0 +1 @@ +Subproject commit 59ebeccd3410cd6cbba744132adad319e16cc9a7 diff --git a/assets/www/index.html b/assets/www/index.html index 3dab6fe1..86e867c8 100644 --- a/assets/www/index.html +++ b/assets/www/index.html @@ -41,8 +41,8 @@ - - + + @@ -50,7 +50,7 @@ - + diff --git a/assets/www/js/chrome.js b/assets/www/js/chrome.js index 95f58848..dbfb5dd5 100644 --- a/assets/www/js/chrome.js +++ b/assets/www/js/chrome.js @@ -301,8 +301,8 @@ window.chrome = function() { $('.section_heading button').remove(); // setup default MobileFrontend behaviour (including toggle) MobileFrontend.init(); - if(!noScroll) - window.scroll(0,0); + MobileFrontend.toggle.init(); + window.scroll(0,0); appHistory.addCurrentPage(); toggleMoveActions(); geo.addShowNearbyLinks();