From 19d7d8796461a36dc9f73f3fe2e55df9c87bb1f7 Mon Sep 17 00:00:00 2001 From: Jan-Christoph Borchardt Date: Fri, 16 May 2014 16:04:36 +0200 Subject: [PATCH] toggle the navigation on desktop, not only on mobile --- core/js/js.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/core/js/js.js b/core/js/js.js index 834916b2e3..67da7915cf 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1111,18 +1111,12 @@ function initCore() { * If the screen is bigger, the main menu is not a toggle any more. */ function setupMainMenu() { - // toggle the navigation on mobile - if (!OC._matchMedia) { - return; - } - var mq = OC._matchMedia('(max-width: 768px)'); - var lastMatch = mq.matches; + // toggle the navigation var $toggle = $('#header #owncloud'); var $navigation = $('#navigation'); function updateMainMenu() { - // mobile mode ? - if (lastMatch && !$toggle.hasClass('menutoggle')) { + if (!$toggle.hasClass('menutoggle')) { // init the menu OC.registerMenu($toggle, $navigation); $toggle.data('oldhref', $toggle.attr('href'));