From 42feab59d5ee45689c9ea6787b0aebceb777dab4 Mon Sep 17 00:00:00 2001 From: Julius Haertl Date: Sun, 18 Dec 2016 15:05:39 +0100 Subject: Show app icons in the header Signed-off-by: Julius Haertl --- core/js/js.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/js') diff --git a/core/js/js.js b/core/js/js.js index 6fd66c9c9bb..e1e0feda2b1 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1370,7 +1370,7 @@ function initCore() { */ function setupMainMenu() { // toggle the navigation - var $toggle = $('#header .header-appname-container'); + var $toggle = $('#more-apps'); var $navigation = $('#navigation'); // init the menu @@ -1439,7 +1439,7 @@ function initCore() { // 2 is the additional offset between the triangles if($('#navigation').length) { $('#header #nextcloud + .menutoggle').one('click', function(){ - var caretPosition = $('.header-appname + .icon-caret').offset().left - 2; + var caretPosition = $('#more-apps').offset().left - 2; if(caretPosition > 255) { // if the app name is longer than the menu, just put the triangle in the middle return; -- cgit v1.2.3